3
0

Updated example .env, added experimental warnings

This commit is contained in:
Peter Grlica
2020-12-10 16:03:13 +01:00
parent cab20207c6
commit cede129ede
2 changed files with 25 additions and 4 deletions

View File

@@ -147,6 +147,8 @@ func Watchers(ctx context.Context) {
return
}
DefaultLogger.Info("Starting federation - warning, this is still an experimental feature")
syncService := NewSync(
&Syncer{},
&Mapper{},
@@ -156,10 +158,17 @@ func Watchers(ctx context.Context) {
ss.DefaultRole)
syncStructure := WorkerStructure(syncService, DefaultLogger)
syncData := WorkerData(syncService, service.DefaultLogger)
syncData := WorkerData(syncService, DefaultLogger)
go syncStructure.Watch(ctx, time.Second*DefaultOptions.StructureMonitorInterval, DefaultOptions.StructurePageSize)
go syncData.Watch(ctx, time.Second*DefaultOptions.DataMonitorInterval, DefaultOptions.DataPageSize)
go syncStructure.Watch(
ctx,
time.Second*DefaultOptions.StructureMonitorInterval,
DefaultOptions.StructurePageSize)
go syncData.Watch(
ctx,
time.Second*DefaultOptions.DataMonitorInterval,
DefaultOptions.DataPageSize)
}
func AddFederationLabel(entity label.LabeledResource, value string) {