From 610f2a54d02f8cf4f2454c03bf679b602e6e59b6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 3 May 2024 08:44:48 +0200 Subject: pkg/rpctype: prepare for not using for target communication Remove things that are only needed for target VM communication: conditional compression, timeout scaling, traffic stats. To minimize diffs when we switch target VM communication to flatrpc. --- tools/syz-hubtool/hubtool.go | 2 +- tools/syz-runtest/runtest.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/syz-hubtool/hubtool.go b/tools/syz-hubtool/hubtool.go index a3317801e..dc59ef230 100644 --- a/tools/syz-hubtool/hubtool.go +++ b/tools/syz-hubtool/hubtool.go @@ -57,7 +57,7 @@ func main() { return } log.Printf("connecting to hub at %v...", *flagHubAddress) - conn, err := rpctype.NewRPCClient(*flagHubAddress, 1, true, true) + conn, err := rpctype.NewRPCClient(*flagHubAddress) if err != nil { log.Fatalf("failed to connect to hub: %v", err) } diff --git a/tools/syz-runtest/runtest.go b/tools/syz-runtest/runtest.go index 1de8f6a54..586e4c2cc 100644 --- a/tools/syz-runtest/runtest.go +++ b/tools/syz-runtest/runtest.go @@ -69,7 +69,7 @@ func main() { } mgr.checkFiles, mgr.checkProgs = mgr.checker.StartCheck() mgr.needCheckResults = len(mgr.checkProgs) - s, err := rpctype.NewRPCServer(cfg.RPC, "Manager", mgr, false) + s, err := rpctype.NewRPCServer(cfg.RPC, "Manager", mgr) if err != nil { log.Fatalf("failed to create rpc server: %v", err) } -- cgit mrf-deployment