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. --- vm/vmimpl/vmimpl.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'vm/vmimpl') diff --git a/vm/vmimpl/vmimpl.go b/vm/vmimpl/vmimpl.go index bd565c8aa..a9afdc1f1 100644 --- a/vm/vmimpl/vmimpl.go +++ b/vm/vmimpl/vmimpl.go @@ -129,18 +129,16 @@ func (err InfraError) InfraError() (string, []byte) { } // Register registers a new VM type within the package. -func Register(typ string, ctor ctorFunc, allowsOvercommit, netCompression bool) { +func Register(typ string, ctor ctorFunc, allowsOvercommit bool) { Types[typ] = Type{ - Ctor: ctor, - Overcommit: allowsOvercommit, - NetCompression: netCompression, + Ctor: ctor, + Overcommit: allowsOvercommit, } } type Type struct { - Ctor ctorFunc - Overcommit bool - NetCompression bool + Ctor ctorFunc + Overcommit bool } type ctorFunc func(env *Env) (Pool, error) -- cgit mrf-deployment