chore(standby_server): remove error return

because standby server should be started in best efforts.
This commit is contained in:
Yicheng Qin
2014-05-16 18:07:49 -04:00
parent 71679bcf56
commit 84f71b6c87
2 changed files with 4 additions and 6 deletions

View File

@@ -50,16 +50,16 @@ type StandbyServer struct {
sync.Mutex
}
func NewStandbyServer(config StandbyServerConfig, client *Client) (*StandbyServer, error) {
func NewStandbyServer(config StandbyServerConfig, client *Client) *StandbyServer {
s := &StandbyServer{
Config: config,
client: client,
standbyInfo: standbyInfo{SyncInterval: DefaultSyncInterval},
}
if err := s.loadInfo(); err != nil {
return nil, fmt.Errorf("error load standby info file: %v", err)
log.Warnf("error load standby info file: %v", err)
}
return s, nil
return s
}
func (s *StandbyServer) Start() {