mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-02-09 09:17:28 +08:00
go fmt
This commit is contained in:
@@ -51,10 +51,10 @@ func (store *PostgresStore) initialize(user, password, hostname string, port int
|
||||
|
||||
sqlUrl := fmt.Sprintf(CONNECTION_URL_PATTERN, hostname, port, user, sslmode)
|
||||
if password != "" {
|
||||
sqlUrl += " password="+password
|
||||
sqlUrl += " password=" + password
|
||||
}
|
||||
if database != "" {
|
||||
sqlUrl += " dbname="+database
|
||||
sqlUrl += " dbname=" + database
|
||||
}
|
||||
var dbErr error
|
||||
store.DB, dbErr = sql.Open("postgres", sqlUrl)
|
||||
|
||||
@@ -181,7 +181,6 @@ func genDirectoryListKey(dir string) (dirList string) {
|
||||
return dir + DIR_LIST_MARKER
|
||||
}
|
||||
|
||||
|
||||
func (store *UniversalRedisStore) Shutdown() {
|
||||
store.Client.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user