Skip to content

Commit

Permalink
changed seconds and messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-bisonai committed Jun 10, 2024
1 parent 2e6e647 commit ac29ed2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sentinel/pkg/checker/event/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func setUp(ctx context.Context) error {
interval := os.Getenv("EVENT_CHECK_INTERVAL")
parsedInterval, err := time.ParseDuration(interval)
if err != nil {
log.Error().Err(err).Msg("Failed to parse HEALTH_CHECK_INTERVAL, using default 60s")
log.Error().Err(err).Msg("Failed to parse EVENT_CHECK_INTERVAL, using default 60s")
} else {
EventCheckInterval = parsedInterval
}
Expand Down
4 changes: 2 additions & 2 deletions sentinel/pkg/request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func GetRequest[T any](urlEndpoint string, requestBody interface{}, headers map[string]string) (T, error) {
return UrlRequest[T](urlEndpoint, "GET", requestBody, headers, "")
return UrlRequest[T](urlEndpoint, "GET", requestBody, headers, "", )
}

func UrlRequest[T any](urlEndpoint string, method string, requestBody interface{}, headers map[string]string, proxy string) (T, error) {
Expand Down Expand Up @@ -84,7 +84,7 @@ func UrlRequestRaw(urlEndpoint string, method string, requestBody interface{}, h
}

client := &http.Client{
Timeout: time.Second, // Set the timeout to 1 second
Timeout: time.Second * 12, // Set the timeout to 1 second
}

if proxy != "" {
Expand Down

0 comments on commit ac29ed2

Please sign in to comment.