Skip to content
Snippets Groups Projects
Commit adaae695 authored by Francé Wilke's avatar Francé Wilke
Browse files

Merge branch 'main' of gitlab.bob.co.za:bob-public-utils/bobgroup-go-utils

parents dd5838f0 5f2d86e2
Branches
Tags v1.107.0
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