add awesome bandage

This commit is contained in:
p4gefau1t
2020-04-29 09:55:50 -04:00
parent 5f5306af6f
commit a2ae4514ae
4 changed files with 20 additions and 22 deletions
-10
View File
@@ -31,13 +31,3 @@ func TestClientAPI(t *testing.T) {
t.Fatal("wrong result")
}
}
func TestRealClientAPI(t *testing.T) {
conn, err := grpc.Dial("127.0.0.1:10000", grpc.WithInsecure())
common.Must(err)
client := NewTrojanServiceClient(conn)
reply, err := client.QueryStats(context.Background(), &StatsRequest{})
common.Must(err)
fmt.Println(reply.DownloadTraffic, reply.UploadTraffic)
fmt.Println(reply.DownloadSpeed, reply.UploadSpeed)
}