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

go mod: change github.com/eosswedenorg-go/eosapi v0.1.3 to github.com/eosswedenorg-go/leapapi v0.2.0

This commit is contained in:
Henrik Hautakoski 2022-11-25 11:56:03 +01:00
parent 61cb49f8be
commit 005ad9fcd0
No known key found for this signature in database
GPG key ID: 608414D93E862CCD
4 changed files with 9 additions and 7 deletions

View file

@ -3,14 +3,14 @@ package api
import (
"fmt"
"github.com/eosswedenorg-go/eosapi"
"github.com/eosswedenorg-go/haproxy/agentcheck"
"github.com/eosswedenorg-go/leapapi"
"github.com/eosswedenorg/antelope-api-healthcheck/internal/utils"
)
type AntelopeV1 struct {
utils.Time
client eosapi.Client
client leapapi.Client
block_time float64
}
@ -20,7 +20,7 @@ func AntelopeV1Factory(args ApiArguments) ApiInterface {
func NewAntelopeV1(url string, host string, block_time float64) AntelopeV1 {
api := AntelopeV1{
client: *eosapi.New(url),
client: *leapapi.New(url),
block_time: block_time,
}

View file

@ -3,13 +3,13 @@ package api
import (
"fmt"
"github.com/eosswedenorg-go/eosapi"
"github.com/eosswedenorg-go/haproxy/agentcheck"
"github.com/eosswedenorg-go/leapapi"
"github.com/eosswedenorg/antelope-api-healthcheck/internal/utils"
)
type AntelopeV2 struct {
client eosapi.Client
client leapapi.Client
offset int64
}
@ -19,7 +19,7 @@ func AntelopeV2Factory(args ApiArguments) ApiInterface {
func NewAntelopeV2(url string, host string, offset int64) AntelopeV2 {
api := AntelopeV2{
client: *eosapi.New(url),
client: *leapapi.New(url),
offset: offset,
}