Ver código fonte

register datasource cache service with proper name

Marcus Efraimsson 7 anos atrás
pai
commit
6f9c0241af
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      pkg/services/datasources/cache.go

+ 5 - 1
pkg/services/datasources/cache.go

@@ -20,7 +20,11 @@ type CacheServiceImpl struct {
 }
 
 func init() {
-	registry.RegisterService(&CacheServiceImpl{})
+	registry.Register(&registry.Descriptor{
+		Name:         "DatasourceCacheService",
+		Instance:     &CacheServiceImpl{},
+		InitPriority: registry.Low,
+	})
 }
 
 func (dc *CacheServiceImpl) Init() error {