Skip to content

Commit

Permalink
removed some comments
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Cobbett <77053+techcobweb@users.noreply.github.com>
  • Loading branch information
techcobweb committed Oct 24, 2024
1 parent e8f1774 commit cbf56ae
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions pkg/utils/timeService.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ func NewRealTimeService() spi.TimeService {
return &service
}

// func (ts *timeService) logStackTrace() {
// // Print the stack trace.
// buf := make([]byte, 1<<16)
// bytesInStackTrace := runtime.Stack(buf, true)
// log.Printf("timeService: %v stack trace : %s", *ts, buf[:bytesInStackTrace])
// }

// Retrieves the current time, with the location set to UTC.
func (ts *timeService) Now() time.Time {
return time.Now().UTC()
Expand Down
5 changes: 0 additions & 5 deletions pkg/utils/timedSleeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@ func NewRealTimedSleeper() spi.TimedSleeper {
}
log.Printf("timeService: %v created\n", service)

// service.logStackTrace()

return &service
}

// Interrupts any timer sleeping.
func (ts *realTimedSleeper) Interrupt(message string) {
log.Printf("timeService: %v Interrupting the timing service sleeping. %s\n", *ts, message)
// ts.logStackTrace()
ts.interruptEventChannel <- "INTERRUPT: " + message
}

Expand All @@ -51,7 +48,5 @@ func (ts *realTimedSleeper) Sleep(duration time.Duration) {
log.Printf("timeService: %v : received interrupt message %s\n", *ts, msg)
case <-timer:
log.Printf("timeService: %v : sleep timed out\n", *ts)
// ts.logStackTrace()
}
// log.Printf("timeService: %v : sleep exiting\n", *ts)
}

0 comments on commit cbf56ae

Please sign in to comment.