Преглед изворни кода

register datasource cache service with proper name

Marcus Efraimsson пре 7 година
родитељ
комит
6f9c0241af
1 измењених фајлова са 5 додато и 1 уклоњено
  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 {