mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Moved the subscription and transport timestamps out of the contacts
table so it's not necessary to hold a write lock on the (heavily used) contacts table to update them.
This commit is contained in:
@@ -9,6 +9,6 @@ import net.sf.briar.api.protocol.Group;
|
||||
public interface SubscriptionWriter {
|
||||
|
||||
/** Writes the contents of the update. */
|
||||
void writeSubscriptionUpdate(Map<Group, Long> subs, long timestamp)
|
||||
void writeSubscriptions(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 writeTransportUpdate(Map<String, Map<String, String>> transports,
|
||||
void writeTransports(Map<String, Map<String, String>> transports,
|
||||
long timestamp) throws IOException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user