mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Calculate the timestamp outside the subscription/transport update
writer - this will allow it to be saved so new connections can work out whether they should send updates.
This commit is contained in:
@@ -9,5 +9,6 @@ import net.sf.briar.api.protocol.Group;
|
||||
public interface SubscriptionWriter {
|
||||
|
||||
/** Writes the contents of the update. */
|
||||
void writeSubscriptions(Map<Group, Long> subs) throws IOException;
|
||||
void writeSubscriptionUpdate(Map<Group, Long> subs, long timestamp)
|
||||
throws IOException;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@ import java.util.Map;
|
||||
public interface TransportWriter {
|
||||
|
||||
/** Writes the contents of the update. */
|
||||
void writeTransports(Map<String, Map<String, String>> transports)
|
||||
throws IOException;
|
||||
void writeTransportUpdate(Map<String, Map<String, String>> transports,
|
||||
long timestamp) throws IOException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user