aboutsummaryrefslogtreecommitdiff
path: root/process.go
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-12-06 15:44:13 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-12-06 15:44:13 +0100
commit463697ea347c4713ea128bfad18cdee5b483e34d (patch)
tree62bc786df6567917f00024e4035d86c66802f4dc /process.go
parent447075f1c2f0fc5451e9236dc22c72af1c5232fa (diff)
stop overwriting new min() and max() functions as variables
Diffstat (limited to 'process.go')
-rw-r--r--process.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/process.go b/process.go
index e30fcb9..33b0fa5 100644
--- a/process.go
+++ b/process.go
@@ -49,10 +49,7 @@ func (cc *ClientConn) process(pkt mt.Pkt) {
}
if cmd.MaxProtoVer < protoVer || cmd.MinProtoVer > protoVer {
- min := cmd.MinProtoVer
- max := cmd.MaxProtoVer
-
- cc.Log("<-", "unsupported protoVer range min", min, "max", max, "expect", protoVer)
+ cc.Log("<-", "unsupported protoVer range min", cmd.MinProtoVer, "max", cmd.MaxProtoVer, "expect", protoVer)
ack, _ := cc.SendCmd(&mt.ToCltKick{Reason: mt.UnsupportedVer})
select {