Commit 6c8da943 authored by David Stainton's avatar David Stainton

Add stupid debug logs to try and find bug

parent 4646e071
Pipeline #962 failed with stage
in 10 minutes and 54 seconds
......@@ -201,14 +201,18 @@ func (s *Session) BlockingSendUnreliableMessage(recipient, provider string, mess
return nil, err
}
// wait until sent so that we know the ReplyETA for the waiting below
s.log.Debug("YOLO111")
sentMessage := <-sentWaitChan
s.log.Debug("YOLO222")
s.sentWaitChanMap.Delete(*msg.ID)
// wait for reply or round trip timeout
select {
case reply := <-replyWaitChan:
s.log.Debug("YOLO333")
s.replyWaitChanMap.Delete(*msg.ID)
return reply, nil
case <-time.After(sentMessage.ReplyETA + roundTripTimeSlop):
s.log.Debug("YOLO444")
return nil, ReplyTimeoutError
}
// unreachable
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment