Bump to nats-queue-worker 0.7.0

Includes fix for reconnection bug to NATS Streaming

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2019-02-12 17:46:00 +00:00
parent 98e47b2f39
commit c394b09ae6
12 changed files with 296 additions and 68 deletions

View File

@ -19,7 +19,7 @@ func AddBasicAuth(req *http.Request) error {
credentials, err := reader.Read()
if err != nil {
return fmt.Errorf("Unable to read basic auth: %s", err.Error())
return fmt.Errorf("unable to read basic auth: %s", err.Error())
}
req.SetBasicAuth(credentials.User, credentials.Password)
@ -37,7 +37,7 @@ func LoadCredentials() (*auth.BasicAuthCredentials, error) {
credentials, err := reader.Read()
if err != nil {
return nil, fmt.Errorf("Unable to read basic auth: %s", err.Error())
return nil, fmt.Errorf("unable to read basic auth: %s", err.Error())
}
return credentials, nil
}