code: func (l *MockLedger) Unregister(Consumer Consumer) {
  	l.Lock()
  	defer l.Unlock()
  
  	for i, p := range l.consumers {
  		if p == Consumer {
  			if i != 0 {
  				l.consumers = l.consumers[1:]
  			}
  			l.consumers = l.consumers[1:]
  			break
  		}
  	}
  }
docs: // Unregister unregisters the given consumer