1
0
Fork 0

Return from request

main
Jordan Hotmann 2023-12-06 22:25:13 -07:00
parent c9a1cdb50d
commit 45192b0c1c
No known key found for this signature in database
GPG Key ID: 01B504170C2A2EA3
1 changed files with 2 additions and 0 deletions

View File

@ -89,11 +89,13 @@ func PublishRequest(subject string, message []byte, timeout time.Duration, retri
attempts += 1
if attempts > retries {
logger.Error("Request retries exceeded", "subject", subject)
return
}
resp, err := client.Conn.Request(subject, message, timeout)
if err == nil {
logger.Debug("Request response received", "response", string(resp.Data))
return
}
}
}