1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

removed no longer needed comments

This commit is contained in:
postmannen 2021-08-26 07:02:36 +02:00
parent 79803600de
commit c93fe189c6
3 changed files with 2 additions and 7 deletions

View file

@ -648,8 +648,6 @@ For CliCommand message to a node named "ship1" of type Command and it wants an A
## TODO
Add metrics to buffers
### nACK messages like hello messages should not be stored in db for retry if failed
### Error message should also contain subject

View file

@ -161,11 +161,8 @@ func (s *server) convertBytesToSAMs(b []byte) ([]subjectAndMessage, error) {
return nil, fmt.Errorf("error: unmarshal of file failed: %#v", err)
}
// --------------------
// Check for toNode and toNodes field.
MsgSlice = s.checkMessageToNodes(MsgSlice)
// --------------------
// TODO: Implement check for empty toNode field.
sam := []subjectAndMessage{}

View file

@ -331,7 +331,7 @@ func (s *server) routeMessagesToProcess(dbFileName string) {
// Prepare and start a new ring buffer
const bufferSize int = 1000
rb := newringBuffer(s.metrics, *s.configuration, bufferSize, dbFileName, Node(s.nodeName), s.newMessagesCh)
// TODO:
ringBufferInCh := make(chan subjectAndMessage)
ringBufferOutCh := make(chan samDBValueAndDelivered)
// start the ringbuffer.