Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 37f2c3c

Browse files
authored
add token argument for createStorage (#125)
1 parent cbc4d61 commit 37f2c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func createStorage(uri string, conf *sync.Config) (object.ObjectStorage, error)
9898
}
9999
pass = string(bytePassword)
100100
}
101-
return object.CreateStorage("sftp", uri, user, pass)
101+
return object.CreateStorage("sftp", uri, user, pass, "")
102102
}
103103
}
104104
u, err := url.Parse(uri)
@@ -132,7 +132,7 @@ func createStorage(uri string, conf *sync.Config) (object.ObjectStorage, error)
132132
endpoint += u.Path
133133
}
134134

135-
store, err := object.CreateStorage(name, endpoint, accessKey, secretKey)
135+
store, err := object.CreateStorage(name, endpoint, accessKey, secretKey, "")
136136
if err != nil {
137137
return nil, fmt.Errorf("create %s %s: %s", name, endpoint, err)
138138
}

0 commit comments

Comments
 (0)