limit queue
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m48s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m48s
This commit is contained in:
@@ -47,7 +47,7 @@ func NewPacketQueue(connection net.Conn) *PacketQueue {
|
||||
l := make([]PacketWithData, 0, len(queue.Packets))
|
||||
|
||||
for _, packet := range queue.Packets {
|
||||
if !packet.Consumed {
|
||||
if !packet.Consumed && packet.Added.After(ts.Add(-time.Second)) {
|
||||
l = append(l, packet)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user