code: func (q *segmentQueue) setLimit(limit int) {
  	q.mu.Lock()
  	q.limit = limit
  	q.mu.Unlock()
  }
docs: // setLimit updates the limit. No segments are immediately dropped in case the
  // queue becomes full due to the new limit.