}
func (m *ackManager) completeTask(taskID int64) (newAckLevel, numberOfAckedTasks int64) {
ack_manager.go
m.Lock()
defer m.Unlock()
macked, found := m.outstandingTasks.Get(taskID)
if !found {
return m.ackLevel, 0
}
if acked {
// don't adjust ack level if nothing has changed
return m.ackLevel, 0