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

updated comments

This commit is contained in:
postmannen 2022-06-22 14:50:26 +02:00
parent 4b0a156ae1
commit fb4cf5de79
4 changed files with 4 additions and 5 deletions

View file

@ -199,9 +199,9 @@ const (
// errActionContinue is ment to be used when the a process
// can just continue without taking any special care.
errActionContinue errorAction = iota
// TODO:
// TODO NOT IMPLEMENTED YET:
// errActionKill should log the error,
// stop the current worker process, and spawn a new.
// and f.ex. stop the current work, and restart from start?
// errActionKill errorAction = iota
)

View file

@ -452,7 +452,6 @@ func newReplyMessage(proc process, message Message, outData []byte) {
// Create a new message for the reply, and put it on the
// ringbuffer to be published.
// TODO: Check that we still got all the fields present that are needed here.
newMsg := Message{
ToNode: message.FromNode,
// The ToNodes field is not needed since it is only a concept that exists when messages

View file

@ -37,7 +37,7 @@ func TestMain(m *testing.M) {
tstTempDir = os.TempDir()
}
// TODO: Forcing this for now.
// NB: Forcing this for now.
tstTempDir = "tmp"
tstNats = newNatsServerForTesting(42222)

View file

@ -300,7 +300,7 @@ func (r *ringBuffer) processBufferMessages(ctx context.Context, outCh chan samDB
case <-delivredCh:
// OK.
case <-time.After(time.Second * 5):
// TODO: Check out if more logic should be made here if messages are stuck etc.
// TODO: Check if more logic should be made here if messages are stuck etc.
// Testing with a timeout here to figure out if messages are stuck
// waiting for done signal.
log.Printf("Error: *** message %v seems to be stuck, did not receive delivered signal from reading process\n", v.ID)