diff --git a/internal/backend/nats/config.go b/internal/backend/nats/config.go index c9cc60d8..5bb8d324 100644 --- a/internal/backend/nats/config.go +++ b/internal/backend/nats/config.go @@ -10,10 +10,10 @@ import ( // Config contains all configuration necessary to connect to a REST server. type Config struct { - Server *url.URL - Credential string `option:"credentialfile" help:"Path to the NatsIO Credential File"` - Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"` - Repo string + Server *url.URL + Credential string `option:"credentialfile" help:"Path to the NatsIO Credential File"` + Connections uint `option:"connections" help:"set a limit for the number of concurrent connections (default: 5)"` + Repo string } func init() { @@ -46,11 +46,11 @@ func ParseConfig(s string) (interface{}, error) { repo = cfg.Server.Path[1:] } if repo[len(repo)-1] == '/' { - repo = repo[0:len(repo)-1] + repo = repo[0 : len(repo)-1] } // replace any further slashes with . to specify a nested queue repo = strings.Replace(repo, "/", ".", -1) cfg.Repo = repo return cfg, nil -} \ No newline at end of file +} diff --git a/internal/backend/nats/nats.go b/internal/backend/nats/nats.go index dc82844d..8df56b80 100644 --- a/internal/backend/nats/nats.go +++ b/internal/backend/nats/nats.go @@ -11,9 +11,9 @@ import ( "path/filepath" "time" + "github.com/Fishwaldo/restic-nats-server/protocol" "github.com/nats-io/nats.go" "github.com/restic/restic/internal/backend" - "github.com/Fishwaldo/restic-nats-server/protocol" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" "github.com/restic/restic/internal/restic"