mirror of
https://github.com/restic/restic.git
synced 2026-11-21 21:12:42 +00:00
1 parent
aa7043151a
commit
b9f0f031b6
672 files changed
+116946
-13086
No files matched your search
+2
@@ -176,8 +176,10 @@ func (s *packetManager) maybeSendPackets() {
|
||||
s.sender.sendPacket(out.(encoding.BinaryMarshaler))
|
||||
// pop off heads
|
||||
copy(s.incoming, s.incoming[1:]) // shift left
|
||||
s.incoming[len(s.incoming)-1] = nil // clear last
|
||||
s.incoming = s.incoming[:len(s.incoming)-1] // remove last
|
||||
copy(s.outgoing, s.outgoing[1:]) // shift left
|
||||
s.outgoing[len(s.outgoing)-1] = nil // clear last
|
||||
s.outgoing = s.outgoing[:len(s.outgoing)-1] // remove last
|
||||
} else {
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user