Skip to content

Commit

Permalink
chore: removed elapsed time log
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldofada committed May 28, 2024
1 parent e18e8a1 commit bb908d6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions checks/mongo/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"crypto/tls"
"errors"
"fmt"
"sync"
"time"

Expand Down Expand Up @@ -61,16 +60,12 @@ func (service *healthCheck) executeCheck() error {
return errors.New("URL is empty")
}

start := time.Now()
_, err := service.connectMongo()
elapsed := time.Since(start)

if err != nil {
return err
}

fmt.Println("Elapsed time: ", elapsed)

return ping(service.Config)
}

Expand Down

0 comments on commit bb908d6

Please sign in to comment.