This commit is contained in:
@@ -16,6 +16,13 @@ import (
|
||||
// The reader and heartbeat goroutines share one connection lifecycle. Closing
|
||||
// the connection must wake pending submitters before scheduling pool recovery.
|
||||
|
||||
// Caller holds c.mu across sequence selection, wire write and pending registration.
|
||||
func (c *connection) sequenceAvailable(sequence uint32) bool {
|
||||
_, submit := c.pending[sequence]
|
||||
_, heartbeat := c.heartbeatPending[sequence]
|
||||
return !submit && !heartbeat
|
||||
}
|
||||
|
||||
type connection struct {
|
||||
channelID string
|
||||
config queue.UpstreamConfig
|
||||
|
||||
Reference in New Issue
Block a user