Skip to content

Commit

Permalink
add token argument for createStorage (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyXSD authored Jun 24, 2022
1 parent cbc4d61 commit 37f2c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func createStorage(uri string, conf *sync.Config) (object.ObjectStorage, error)
}
pass = string(bytePassword)
}
return object.CreateStorage("sftp", uri, user, pass)
return object.CreateStorage("sftp", uri, user, pass, "")
}
}
u, err := url.Parse(uri)
Expand Down Expand Up @@ -132,7 +132,7 @@ func createStorage(uri string, conf *sync.Config) (object.ObjectStorage, error)
endpoint += u.Path
}

store, err := object.CreateStorage(name, endpoint, accessKey, secretKey)
store, err := object.CreateStorage(name, endpoint, accessKey, secretKey, "")
if err != nil {
return nil, fmt.Errorf("create %s %s: %s", name, endpoint, err)
}
Expand Down

0 comments on commit 37f2c3c

Please sign in to comment.