@@ -121,16 +121,16 @@ func (s *DiscoveryServer) Shutdown() {
121121
122122func (s * DiscoveryServer ) initPushContext (req * model.PushRequest , oldPushContext * model.PushContext , version string ) * model.PushContext {
123123 startTime := time .Now ()
124-
124+
125125 push := model .NewPushContext ()
126126 push .PushVersion = version
127127 push .InitContext (s .Env , oldPushContext , req )
128128 s .dropCacheForRequest (req )
129129 s .Env .SetPushContext (push )
130-
130+
131131 // Record push context init time
132132 pushContextInitTime .Record (time .Since (startTime ).Seconds ())
133-
133+
134134 return push
135135}
136136
@@ -178,10 +178,10 @@ func debounce(ch chan *model.PushRequest, stopCh <-chan struct{}, opts DebounceO
178178 push := func (req * model.PushRequest , debouncedEvents int , startDebounce time.Time ) {
179179 pushFn (req )
180180 updateSent .Add (int64 (debouncedEvents ))
181-
181+
182182 // Record debounce time metric
183183 debounceTime .Record (time .Since (startDebounce ).Seconds ())
184-
184+
185185 freeCh <- struct {}{}
186186 }
187187
@@ -290,12 +290,12 @@ func doSendPushes(stopCh <-chan struct{}, semaphore chan struct{}, queue *PushQu
290290 if shuttingdown {
291291 return
292292 }
293-
293+
294294 // Record proxy queue time
295295 if push != nil && ! push .Start .IsZero () {
296296 proxiesQueueTime .Record (time .Since (push .Start ).Seconds ())
297297 }
298-
298+
299299 doneFunc := func () {
300300 queue .MarkDone (client )
301301 <- semaphore
@@ -371,7 +371,7 @@ func (s *DiscoveryServer) ConfigUpdate(req *model.PushRequest) {
371371 s .Cache .ClearAll ()
372372 }
373373 s .InboundUpdates .Inc ()
374-
374+
375375 // Record inbound update metrics
376376 if req .ConfigsUpdated != nil && len (req .ConfigsUpdated ) > 0 {
377377 recordInboundConfigUpdate ()
@@ -441,10 +441,10 @@ func (s *DiscoveryServer) EDSUpdate(shard model.ShardKey, serviceName string, na
441441 // 3. Endpoint health status changes
442442 if pushType == model .IncrementalPush || pushType == model .FullPush {
443443 log .Debugf ("service %s/%s triggering %v push [endpoints=%d]" , namespace , serviceName , pushType , len (dubboEndpoints ))
444-
444+
445445 // Record EDS update metric
446446 recordInboundEDSUpdate ()
447-
447+
448448 s .ConfigUpdate (& model.PushRequest {
449449 // Full: pushType == model.FullPush,
450450 // ConfigsUpdated: sets.New(model.ConfigKey{Kind: kind.ServiceEntry, Name: serviceName, Namespace: namespace}),
0 commit comments