Skip to content

Commit 3cac44c

Browse files
committed
refactor: fix spelling
1 parent cdeb9c2 commit 3cac44c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

internal/certificatetransparency/ct-watcher.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func (w *worker) startDownloadingCerts(ctx context.Context) {
344344
log.Printf("Worker for '%s' failed with unexpected error: %s\n", w.ctURL, workerErr)
345345
}
346346

347-
// Check if the context was cancelled
347+
// Check if the context was canceled
348348
select {
349349
case <-ctx.Done():
350350
log.Printf("Context was cancelled; Stopping worker for '%s'\n", w.ctURL)
@@ -417,7 +417,7 @@ func (w *worker) runStandardWorker(ctx context.Context) error {
417417
func (w *worker) runTiledWorker(ctx context.Context) error {
418418
hc := &http.Client{Timeout: 30 * time.Second}
419419

420-
// If recovery is enabled and the CT index is set, we start at the saved index. Otherwise we start at the latest checkpoint.
420+
// If recovery is enabled and the CT index is set, we start at the saved index. Otherwise, we start at the latest checkpoint.
421421
validSavedCTIndexExists := config.AppConfig.General.Recovery.Enabled && w.ctIndex >= 0
422422
if !validSavedCTIndexExists {
423423
checkpoint, err := FetchCheckpoint(ctx, hc, w.ctURL)
@@ -577,7 +577,7 @@ func certHandler(entryChan chan models.Entry) {
577577
web.SetExampleCert(entry)
578578
}
579579

580-
// Run json encoding in the background and send the result to the clients.
580+
// Run JSON encoding in the background and send the result to the clients.
581581
web.ClientHandler.Broadcast <- entry
582582

583583
// Update metrics
@@ -591,7 +591,7 @@ func certHandler(entryChan chan models.Entry) {
591591

592592
// getGoogleLogList fetches the list of all CT logs from Google Chromes CT LogList.
593593
func getGoogleLogList() (loglist3.LogList, error) {
594-
// Download the list of all logs from ctLogInfo and decode json
594+
// Download the list of all logs from ctLogInfo and decode JSON
595595
resp, err := http.Get(loglist3.LogListURL)
596596
if err != nil {
597597
return loglist3.LogList{}, err

0 commit comments

Comments
 (0)