aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmimpl
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-05-03 08:44:48 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-05-03 15:57:46 +0000
commit610f2a54d02f8cf4f2454c03bf679b602e6e59b6 (patch)
treedd1768a4e516fe9fb6945613ebf009eda82317f6 /vm/vmimpl
parent3a81775029176dd4c693542e6715b985fa7ade4d (diff)
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.
Diffstat (limited to 'vm/vmimpl')
-rw-r--r--vm/vmimpl/vmimpl.go12
1 files changed, 5 insertions, 7 deletions
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)