From a78639b5ccf5ae6e8c3d8a8c14188767da92dece Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Tue, 16 Jan 2024 15:28:40 +0100 Subject: [PATCH] format --- discovery/client.go | 1 - discovery/config.go | 2 +- discovery/module.go | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/discovery/client.go b/discovery/client.go index f96944fada..c65a118851 100644 --- a/discovery/client.go +++ b/discovery/client.go @@ -197,7 +197,6 @@ func (r *defaultClientRegistrationManager) refresh(ctx context.Context, interval } } - // clientUpdater is responsible for updating the presentations for the given services, at the given interval. // Callers should only call update(). type clientUpdater struct { diff --git a/discovery/config.go b/discovery/config.go index 97731c83cd..fb7b8bca6d 100644 --- a/discovery/config.go +++ b/discovery/config.go @@ -52,7 +52,7 @@ func DefaultConfig() Config { return Config{ Server: ServerConfig{}, Client: ClientConfig{ - UpdateInterval: 10 * time.Minute, + UpdateInterval: 10 * time.Minute, RegistrationRefreshInterval: 10 * time.Minute, }, } diff --git a/discovery/module.go b/discovery/module.go index efacfaae13..c6c5ee058a 100644 --- a/discovery/module.go +++ b/discovery/module.go @@ -72,7 +72,7 @@ func New(storageInstance storage.Engine, vcrInstance vcr.VCR, documentOwner mana m := &Module{ storageInstance: storageInstance, vcrInstance: vcrInstance, - documentOwner: documentOwner, + documentOwner: documentOwner, } m.ctx, m.cancel = context.WithCancel(context.Background()) m.routines = new(sync.WaitGroup) @@ -90,7 +90,7 @@ type Module struct { allDefinitions map[string]ServiceDefinition vcrInstance vcr.VCR documentOwner management.DocumentOwner - clientUpdater *clientUpdater + clientUpdater *clientUpdater ctx context.Context cancel context.CancelFunc routines *sync.WaitGroup