From 8e956ee13408280c078af18cec09f3a45248e47d Mon Sep 17 00:00:00 2001 From: soyum2222 Date: Mon, 5 Jul 2021 16:39:03 +0800 Subject: [PATCH] function flush --- sniper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sniper.go b/sniper.go index e9e28b9..7ed25dd 100644 --- a/sniper.go +++ b/sniper.go @@ -438,7 +438,7 @@ func (s *Sniper) shoot(put bool) { func (s *Sniper) flush() { defer func() { - remain := (s.packageSize)*5 - int64(len(s.sendBuffer)) + remain := (s.packageSize) - int64(len(s.sendBuffer)) if remain > 0 { _ = s.writerBlocker.Pass() }