Skip to content

Commit

Permalink
function flush
Browse files Browse the repository at this point in the history
  • Loading branch information
soyum2222 committed Jul 5, 2021
1 parent 6370f78 commit 8e956ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sniper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 8e956ee

Please sign in to comment.