mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-11 08:47:46 +02:00
avoid missing configuration file error
This commit is contained in:
1 parent
2d4a7ac9f9
commit
a1d5a6298c
1 file changed
+3
-2
@@ -6,6 +6,7 @@ import (
|
||||
"code.google.com/p/weed-fs/go/storage"
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"math/rand"
|
||||
)
|
||||
|
||||
@@ -54,8 +55,8 @@ func (t *Topology) loadConfiguration(configurationFile string) error {
|
||||
if e == nil {
|
||||
t.configuration, e = NewConfiguration(b)
|
||||
return e
|
||||
}else{
|
||||
log.Println("Using default configurations.")
|
||||
} else {
|
||||
log.Println("Using default configurations.")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user