Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update blst tags for sentinel #1575

Merged
merged 6 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ yarn-error.log
dockerfiles/local-data-feed/tmp/**
.env
.aider*
.idea
2 changes: 1 addition & 1 deletion dockerfiles/orakl-sentinel.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY sentinel sentinel

WORKDIR /app/sentinel

RUN CGO_ENABLED=1 CC=x86_64-linux-gnu-gcc GOOS=linux GOARCH=amd64 go build -o sentinelbin -ldflags="-w -s" ./cmd/main.go
RUN CGO_ENABLED=1 CGO_CFLAGS="-O -D__BLST_PORTABLE__" CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__" CC=x86_64-linux-gnu-gcc GOOS=linux GOARCH=amd64 go build -o sentinelbin -ldflags="-w -s" ./cmd/main.go

# debian:bullseye-slim
FROM debian@sha256:4b48997afc712259da850373fdbc60315316ee72213a4e77fc5a66032d790b2a
Expand Down
1 change: 1 addition & 0 deletions sentinel/.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
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
Loading