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:
parent
dbf59d1305
commit
d67864dadf
4 changed files with 5 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue