mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 22:33:23 +00:00
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:
4
gateway/vendor/github.com/openfaas/nats-queue-worker/auth.go
generated
vendored
4
gateway/vendor/github.com/openfaas/nats-queue-worker/auth.go
generated
vendored
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user