mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Retrieve messages from the database in raw form to avoid creating unnecessary short-lived objects. Added timestamps to headers.
This commit is contained in:
@@ -12,7 +12,6 @@ import java.util.logging.Logger;
|
||||
import net.sf.briar.api.crypto.Password;
|
||||
import net.sf.briar.api.db.DatabasePassword;
|
||||
import net.sf.briar.api.db.DbException;
|
||||
import net.sf.briar.api.protocol.MessageFactory;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
|
||||
@@ -28,9 +27,8 @@ class H2Database extends JdbcDatabase {
|
||||
private final long maxSize;
|
||||
|
||||
@Inject
|
||||
H2Database(File dir, MessageFactory messageFactory,
|
||||
@DatabasePassword Password password, long maxSize) {
|
||||
super(messageFactory, "BINARY(32)", "BIGINT");
|
||||
H2Database(File dir, @DatabasePassword Password password, long maxSize) {
|
||||
super("BINARY(32)", "BIGINT");
|
||||
home = new File(dir, "db");
|
||||
this.password = password;
|
||||
url = "jdbc:h2:split:" + home.getPath()
|
||||
|
||||
Reference in New Issue
Block a user