Skip to content

Commit

Permalink
Upgrade go-api
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jun 10, 2024
1 parent 72995ab commit d228a6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/dipdup-io/starknet-indexer
go 1.22

require (
github.com/dipdup-io/starknet-go-api v0.0.0-20240610163809-69297a8e3cac
github.com/dipdup-io/starknet-go-api v0.0.0-20240610170056-02f2af917ff7
github.com/dipdup-io/workerpool v0.0.4
github.com/dipdup-net/go-lib v0.3.3
github.com/dipdup-net/indexer-sdk v0.0.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/denisenkom/go-mssqldb v0.12.3 h1:pBSGx9Tq67pBOTLmxNuirNTeB8Vjmf886Kx+8Y+8shw=
github.com/denisenkom/go-mssqldb v0.12.3/go.mod h1:k0mtMFOnU+AihqFxPMiF05rtiDrorD1Vrm1KEz5hxDo=
github.com/dipdup-io/starknet-go-api v0.0.0-20240610163809-69297a8e3cac h1:mlbq1oUC0yKwDXfdWvWMOEGYZT6RuCsNtJNT9UGRTIs=
github.com/dipdup-io/starknet-go-api v0.0.0-20240610163809-69297a8e3cac/go.mod h1:y3KGLFQtwzUBcT0X2LMj6CxocUimr/A9XYg+j0KIRDE=
github.com/dipdup-io/starknet-go-api v0.0.0-20240610170056-02f2af917ff7 h1:t7sUle6jxpFRj2A1QTzRX8/anOBAzLkhxXmpEQkHiSM=
github.com/dipdup-io/starknet-go-api v0.0.0-20240610170056-02f2af917ff7/go.mod h1:y3KGLFQtwzUBcT0X2LMj6CxocUimr/A9XYg+j0KIRDE=
github.com/dipdup-io/workerpool v0.0.4 h1:m58fuFY3VIPRc+trWpjw2Lsm4FvIgtjP/4VRe79r+/s=
github.com/dipdup-io/workerpool v0.0.4/go.mod h1:m6YMqx7M+fORTyabHD/auKymBRpbDax0t1aPZ1i7GZA=
github.com/dipdup-net/go-lib v0.3.3 h1:vTUI+sT4L+x+eiMf712Cg8EtlqUCMiN6M3vcNaPlCw8=
Expand Down
2 changes: 1 addition & 1 deletion pkg/indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (indexer *Indexer) getNewBlocks(ctx context.Context) error {

func (indexer *Indexer) sync(ctx context.Context) {
if err := indexer.getNewBlocks(ctx); err != nil {
indexer.Log.Error().Msgf("getNewBlocks: %s", err.Error())
indexer.Log.Err(err).Msg("getNewBlocks")
}

ticker := time.NewTicker(time.Second * 30)
Expand Down

0 comments on commit d228a6c

Please sign in to comment.