Skip to content

Commit 4103afd

Browse files
Fix: skip all handler errors
1 parent a83eecd commit 4103afd

File tree

4 files changed

+41
-28
lines changed

4 files changed

+41
-28
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
- name: Set up Go
1313
uses: actions/setup-go@v5
1414
with:
15-
go-version: '1.23'
15+
go-version: '1.24'
1616
cache: false
1717
- name: golangci-lint
18-
uses: golangci/golangci-lint-action@v6
18+
uses: golangci/golangci-lint-action@v8
1919
with:
20-
version: v1.60.3
20+
version: v2.1.6
2121
args: --timeout=5m
2222

2323
test:
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install Go
3131
uses: actions/setup-go@v5
3232
with:
33-
go-version: 1.23.x
33+
go-version: 1.24.x
3434

3535
- name: Golang tests
3636
env:

.golangci.yml

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,43 @@
1+
version: "2"
12
linters:
23
enable:
3-
- goconst
4-
- gocritic
5-
- gofmt
6-
- govet
7-
- prealloc
8-
- unconvert
9-
- unused
10-
- errcheck
11-
- ineffassign
124
- containedctx
13-
- tenv
14-
- musttag
15-
- mirror
16-
- tagalign
17-
- zerologlint
185
- copyloopvar
6+
- goconst
7+
- gocritic
198
- gosec
9+
- makezero
10+
- mirror
2011
- misspell
12+
- musttag
2113
- noctx
2214
- prealloc
2315
- protogetter
24-
- makezero
25-
linters-settings:
26-
gosec:
27-
excludes:
28-
- G115
16+
- tagalign
17+
- unconvert
18+
- usetesting
19+
- zerologlint
20+
settings:
21+
gosec:
22+
excludes:
23+
- G115
24+
exclusions:
25+
generated: lax
26+
presets:
27+
- comments
28+
- common-false-positives
29+
- legacy
30+
- std-error-handling
31+
paths:
32+
- third_party$
33+
- builtin$
34+
- examples$
35+
formatters:
36+
enable:
37+
- gofmt
38+
exclusions:
39+
generated: lax
40+
paths:
41+
- third_party$
42+
- builtin$
43+
- examples$

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/celenium-io/celestial-module
22

3-
go 1.23.2
3+
go 1.24.4
44

55
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
66

pkg/module/module.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,8 @@ func (m *Module) sync(ctx context.Context) error {
171171
}
172172
addressId, err := m.addressHandler(ctx, changes.Changes[i].Address)
173173
if err != nil {
174-
if status == storage.StatusNOTVERIFIED {
175-
continue
176-
}
177-
return errors.Wrap(err, "address handler")
174+
m.Log.Err(err).Msg("address handler")
175+
continue
178176
}
179177

180178
if status == storage.StatusPRIMARY {

0 commit comments

Comments
 (0)