Skip to content

Commit d4284f5

Browse files
Merge pull request #51 from DistributedClocks/vrpc_testing
Add test for RPC
2 parents a1ed9fb + 000c9bb commit d4284f5

File tree

4 files changed

+122
-366
lines changed

4 files changed

+122
-366
lines changed

example/RpcClientServer/RpcClientServer.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ func rpcserver() {
5454
log.Fatal("listen error:", e)
5555
}
5656

57-
vrpc.ServeRPCConn(server, l, logger)
57+
options := govec.GetDefaultLogOptions()
58+
vrpc.ServeRPCConn(server, l, logger, options)
5859
}
5960

6061
func rpcclient() {
6162
fmt.Println("Starting client")
6263
logger := govec.InitGoVector("client", "clientlogfile", govec.GetDefaultConfig())
63-
client, err := vrpc.RPCDial("tcp", "127.0.0.1:8080", logger)
64+
options := govec.GetDefaultLogOptions()
65+
client, err := vrpc.RPCDial("tcp", "127.0.0.1:8080", logger, options)
6466
if err != nil {
6567
log.Fatal(err)
6668
}

govec/vclock/vclock_test_full.txt

Lines changed: 0 additions & 347 deletions
This file was deleted.

0 commit comments

Comments
 (0)