File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -186,14 +186,13 @@ func (c *Server) registerDrivers() error {
186186
187187 logrus .Debug ("created index storage" )
188188
189- client , err := gopilosa .NewClient (c .PilosaURL )
190- if err != nil {
191- return err
189+ if client , err := gopilosa .NewClient (c .PilosaURL ); err == nil {
190+ logrus .Debug ("established connection with pilosa" )
191+ c .engine .Catalog .RegisterIndexDriver (pilosa .NewDriver (filepath .Join (c .IndexDir , pilosa .DriverID ), client ))
192+ } else {
193+ logrus .WithError (err ).Warn ("cannot connect to pilosa" )
192194 }
193195
194- logrus .Debug ("established connection with pilosa" )
195-
196- c .engine .Catalog .RegisterIndexDriver (pilosa .NewDriver (filepath .Join (c .IndexDir , pilosa .DriverID ), client ))
197196 c .engine .Catalog .RegisterIndexDriver (pilosalib .NewDriver (filepath .Join (c .IndexDir , pilosalib .DriverID )))
198197 logrus .Debug ("registered pilosa index driver" )
199198
You can’t perform that action at this time.
0 commit comments