mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid missing configuration file error
This commit is contained in:
parent
2d4a7ac9f9
commit
a1d5a6298c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue