refactor(rtt): use proto Duration, add tests

This commit is contained in:
Pasha Sviderski
2026-04-20 11:36:44 +10:00
parent 8d023f5c53
commit 84990ad692
10 changed files with 387 additions and 144 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ package api;
option go_package = "github.com/psviderski/uncloud/internal/machine/api/pb";
import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";
import "internal/machine/api/pb/common.proto";
@@ -133,6 +134,6 @@ message WireGuardPeer {
}
message RTTStats {
double median = 1;
double std_dev = 2;
google.protobuf.Duration median = 1;
google.protobuf.Duration std_dev = 2;
}