Skip to content

Commit e27aa4a

Browse files
authored
Merge pull request #68 from blinklabs-io/feat/auto-reconnect
feat: enable chainsync logging and auto-reconnect
2 parents 5da35ce + 8952892 commit e27aa4a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Diff for: go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/blinklabs-io/cdnsd
33
go 1.20
44

55
require (
6-
github.com/blinklabs-io/gouroboros v0.60.0
7-
github.com/blinklabs-io/snek v0.14.0
6+
github.com/blinklabs-io/gouroboros v0.61.0
7+
github.com/blinklabs-io/snek v0.15.0
88
github.com/dgraph-io/badger/v4 v4.2.0
99
github.com/kelseyhightower/envconfig v1.4.0
1010
github.com/miekg/dns v1.1.56

Diff for: go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
22
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
3-
github.com/blinklabs-io/gouroboros v0.60.0 h1:G08+r15QwTlak8UfCzZmJVlzIBMIy2iyYI7CL2+Jcxs=
4-
github.com/blinklabs-io/gouroboros v0.60.0/go.mod h1:D5YJka8EyVmiXNMbRvjH23H9lNMLA4+qSlNNC/j7R0k=
5-
github.com/blinklabs-io/snek v0.14.0 h1:r2Lf1AZBCT3mLx9f8z2qt6VFY48LKdq+LlN4nxhCL3Y=
6-
github.com/blinklabs-io/snek v0.14.0/go.mod h1:I+V+LQY5It+ifYaAKLqZ6AEzbiMvxvK3YanwkHUXrlQ=
3+
github.com/blinklabs-io/gouroboros v0.61.0 h1:HSAo2thM/4JM6tVF4e/o9f20aVElSckJVX6LdkvuNyE=
4+
github.com/blinklabs-io/gouroboros v0.61.0/go.mod h1:D5YJka8EyVmiXNMbRvjH23H9lNMLA4+qSlNNC/j7R0k=
5+
github.com/blinklabs-io/snek v0.15.0 h1:opj+apWge2ujHIDiFrI08P6rW7gUeKRsNXzje8UCjx4=
6+
github.com/blinklabs-io/snek v0.15.0/go.mod h1:9pR+B/oQ/bf+G6tB4NnA6x0i10+ucDixpHc0LzF6500=
77
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
88
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
99
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=

Diff for: internal/indexer/indexer.go

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ func (i *Indexer) Start() error {
5252
},
5353
),
5454
input_chainsync.WithBulkMode(true),
55+
input_chainsync.WithAutoReconnect(true),
56+
input_chainsync.WithLogger(logger),
5557
}
5658
if cfg.Indexer.NetworkMagic > 0 {
5759
inputOpts = append(

0 commit comments

Comments
 (0)