Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dxyinme committed May 21, 2024
1 parent 77e6c60 commit 2e95779
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dcron.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ func (d *Dcron) startNodePool() error {
return nil
}

// Stop job
// This function is to Stop the dcron.
// Stop stops the cron scheduler if it is running; otherwise it does nothing.
// A context is returned so the caller can wait for running jobs to complete.
func (d *Dcron) Stop() context.Context {
tick := time.NewTicker(time.Millisecond)
if !d.runningLocally {
Expand Down

0 comments on commit 2e95779

Please sign in to comment.