Browse Source

register datasource cache service with proper name

Marcus Efraimsson 7 years ago
parent
commit
6f9c0241af
1 changed files with 5 additions and 1 deletions
  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 {