228
}
229
230
>
if err := r.refresher.Err(); !errors.Is(err, persistence.ErrWatchNotSupported) {
registry.go
231
// Watch failed to start for a reason other than ErrWatchNotSupported
232
metrics.NamespaceRegistryWatchStartFailures.With(r.metricsHandler).Record(1)
233
r.logger.Warn("Unable to start namespace watch - falling back to polling", tag.Error(err))
235
>
r.logger.Info("Watch not supported by persistence, namespace registry will use polling")
236
>
}
237
238
// Fall back to polling
239
>
if err := r.refreshNamespaces(ctx); err != nil {
registry.go
240
r.logger.Fatal("Unable to initialize namespace registry", tag.Error(err))
241
}
242
>
r.refresher = goro.NewHandle(ctx).Go(r.runPollingLoop)
registry.go
243
}
244