code: func (ms *MemoryMsgStore) removeFirstMsg() {
  	firstMsg := ms.msgs[ms.first]
  	ms.totalBytes -= uint64(firstMsg.Size())
  	ms.totalCount--
  	delete(ms.msgs, ms.first)
  	ms.first++
  }
docs: // removeFirstMsg removes the first message and updates totals.