Skip to content
Snippets Groups Projects
Commit 5f2d86e2 authored by Johan de Klerk's avatar Johan de Klerk
Browse files

Dont wait for SQS response

parent 2499d761
No related branches found
No related tags found
No related merge requests found
......@@ -106,9 +106,12 @@ func (m *Messenger) SendSQSMessage(headers map[string]string, body string, curre
func SendSQSMessage(msgr Messenger, objectToSend interface{}, currentRequestID *string, sqsType string, isDebug bool) error {
if isDebug {
go func() {
resty.New().R().
SetBody(objectToSend).
Post("http://127.0.0.1:3000/sqs/" + sqsType)
}()
time.Sleep(time.Second*1)
return nil
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment