Skip to content

Commit f7245fa

Browse files
committed
reduce overhead on the agentsocket api
1 parent 9fdc98d commit f7245fa

File tree

4 files changed

+108
-335
lines changed

4 files changed

+108
-335
lines changed

agent/agentsocket/proto/agentsocket.pb.go

Lines changed: 51 additions & 169 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

agent/agentsocket/proto/agentsocket.proto

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,34 @@ option go_package = "github.com/coder/coder/v2/agent/agentsocket/proto";
33

44
package coder.agentsocket.v1;
55

6-
import "google/protobuf/timestamp.proto";
7-
86
message PingRequest {}
97

10-
message PingResponse {
11-
string message = 1;
12-
google.protobuf.Timestamp timestamp = 2;
13-
}
8+
message PingResponse {}
149

1510
message SyncStartRequest {
1611
string unit = 1;
1712
}
1813

19-
message SyncStartResponse {
20-
bool success = 1;
21-
string message = 2;
22-
}
14+
message SyncStartResponse {}
2315

2416
message SyncWantRequest {
2517
string unit = 1;
2618
string depends_on = 2;
2719
}
2820

29-
message SyncWantResponse {
30-
bool success = 1;
31-
string message = 2;
32-
}
21+
message SyncWantResponse {}
3322

3423
message SyncCompleteRequest {
3524
string unit = 1;
3625
}
3726

38-
message SyncCompleteResponse {
39-
bool success = 1;
40-
string message = 2;
41-
}
27+
message SyncCompleteResponse {}
4228

4329
message SyncReadyRequest {
4430
string unit = 1;
4531
}
4632

47-
message SyncReadyResponse {
48-
bool success = 1;
49-
string message = 2;
50-
bool is_ready = 3;
51-
}
33+
message SyncReadyResponse {}
5234

5335
message SyncStatusRequest {
5436
string unit = 1;

0 commit comments

Comments
 (0)