You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: accountant.go
    path of file: ./repos/wormhole/node/pkg/accountant
    
    the code of the file until where you have to start completion: // The accountant package manages the interface to the accountant smart contract on wormchain. It is passed all VAAs before
// they are signed and p
    
func (acct *Accountant) submitToChannel(pe *pendingEntry, subChan chan *common.MessagePublication, tag string) {
	select {
	case subChan <- pe.msg:
		acct.logger.Debug(fmt.Sprintf("submitted observation to channel for %s", tag), zap.String("msgId", pe.msgId))
	default:
		acct.logger.Error(fmt.Sprintf("unable to submit observation to %s because the channel is full, will try next interval", tag), zap.String("msgId", pe.msgId))
		pe.state.submitPending = false
	}
}