完善队列集合的ACK确认机制
This commit is contained in:
parent
1647f91ba4
commit
f290e7dd0c
@ -1,7 +1,6 @@
|
|||||||
package lock_free
|
package lock_free
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"iter"
|
"iter"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@ -84,7 +83,6 @@ func (q *Queues[TKey, TValue, TRoute]) makeAckData(route TRoute, value TValue, v
|
|||||||
|
|
||||||
case <-time.After(q.expireAutoFail):
|
case <-time.After(q.expireAutoFail):
|
||||||
// 重新入队
|
// 重新入队
|
||||||
fmt.Println("ack timeout")
|
|
||||||
queue.(*DelayLkQueue[TKey, TValue]).Enqueue(value)
|
queue.(*DelayLkQueue[TKey, TValue]).Enqueue(value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user