File tree 1 file changed +5
-6
lines changed
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 {
186
186
187
187
logrus .Debug ("created index storage" )
188
188
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" )
192
194
}
193
195
194
- logrus .Debug ("established connection with pilosa" )
195
-
196
- c .engine .Catalog .RegisterIndexDriver (pilosa .NewDriver (filepath .Join (c .IndexDir , pilosa .DriverID ), client ))
197
196
c .engine .Catalog .RegisterIndexDriver (pilosalib .NewDriver (filepath .Join (c .IndexDir , pilosalib .DriverID )))
198
197
logrus .Debug ("registered pilosa index driver" )
199
198
You can’t perform that action at this time.
0 commit comments