1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

go.mod: Update github.com/eosswedenorg-go/leapapi to v0.2.3

This commit is contained in:
Henrik Hautakoski 2023-02-06 14:23:13 +01:00
parent dbf59d1305
commit d67864dadf
No known key found for this signature in database
GPG key ID: 217490840C18A5D9
4 changed files with 5 additions and 7 deletions

View file

@ -46,8 +46,7 @@ func (e AntelopeV1) LogInfo() LogParams {
}
func (e AntelopeV1) Call(ctx context.Context) (agentcheck.Response, string) {
// TODO: Pass context
info, err := e.client.GetInfo()
info, err := e.client.GetInfo(ctx)
if err != nil {
resp := agentcheck.NewStatusMessageResponse(agentcheck.Fail, "")
return resp, err.Error()

View file

@ -45,8 +45,7 @@ func (e AntelopeV2) LogInfo() LogParams {
}
func (e AntelopeV2) Call(ctx context.Context) (agentcheck.Response, string) {
// TODO: Pass context
health, err := e.client.GetHealth()
health, err := e.client.GetHealth(ctx)
if err != nil {
resp := agentcheck.NewStatusMessageResponse(agentcheck.Fail, "")
return resp, err.Error()