1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-03-05 06:46:48 +00:00

removed not needed comments

This commit is contained in:
postmannen 2021-08-26 07:01:55 +02:00
parent 181af1694c
commit 79803600de

View file

@ -744,11 +744,14 @@ func (m methodREQPing) handler(proc process, message Message, node string) ([]by
// TODO: Replace this with an append to file on receival.
log.Printf("<--- PING REQUEST received from: %v, containing: %v", message.FromNode, message.Data)
// ---
// ---
proc.processes.wg.Add(1)
go func() {
defer proc.processes.wg.Done()
// Prepare and queue for sending a new message with the output
// of the action executed.
d := fmt.Sprintf("%v, ping reply sent from %v\n", time.Now().UTC(), message.ToNode)
newReplyMessage(proc, message, []byte(d))
}()