Jelajahi Sumber

Update pkg/util/atomic/atomicrunstate.go

Co-authored-by: Michael Dresser <michael@kubecost.com>
Matt Bolt 4 tahun lalu
induk
melakukan
45af4847ef
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      pkg/util/atomic/atomicrunstate.go

+ 1 - 1
pkg/util/atomic/atomicrunstate.go

@@ -63,7 +63,7 @@ func (ars *AtomicRunState) Reset() {
 	ars.stop = nil
 	ars.stop = nil
 }
 }
 
 
-// IsRunning returns true if metric recording is running or in the process of stopping.
+// IsRunning returns true if the state is running or in the process of stopping.
 func (ars *AtomicRunState) IsRunning() bool {
 func (ars *AtomicRunState) IsRunning() bool {
 	ars.lock.Lock()
 	ars.lock.Lock()
 	defer ars.lock.Unlock()
 	defer ars.lock.Unlock()