Skip to content

Commit f8b1d04

Browse files
Bring back servers_all for now, and add fields for network latency calculations
1 parent 34e64e7 commit f8b1d04

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

proto/connection.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ message Connection {
1818
}
1919

2020
message Res {
21+
uint64 server_duration_millis = 2;
2122
ConnectionID connection_id = 1;
2223
// also: initial Token
2324
}

proto/transaction.proto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ package typedb.protocol;
1313
message Transaction {
1414

1515
message Client {
16-
bytes connection_id = 1;
17-
repeated Req reqs = 2;
16+
repeated Req reqs = 1;
1817
}
1918

2019
message Server {
@@ -68,7 +67,9 @@ message Transaction {
6867
Options options = 3;
6968
uint64 network_latency_millis = 4;
7069
}
71-
message Res {}
70+
message Res {
71+
uint64 server_duration_millis = 2;
72+
}
7273
}
7374

7475
message Commit {

proto/typedb-service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ service TypeDB {
1818
rpc connection_open (Connection.Open.Req) returns (Connection.Open.Res);
1919

2020
// // Server Manager API
21-
// rpc servers_all (ServerManager.All.Req) returns (ServerManager.All.Res);
21+
rpc servers_all (ServerManager.All.Req) returns (ServerManager.All.Res);
2222
//
2323
// // User Manager API
2424
// rpc users_contains (UserManager.Contains.Req) returns (UserManager.Contains.Res);

0 commit comments

Comments
 (0)