Skip to content

Commit 461755b

Browse files
committed
fix: package cosmosaccount Account.PubKey ignore error
Signed-off-by: Abirdcfly <[email protected]>
1 parent 3c8f86c commit 461755b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ignite/pkg/cosmosaccount/cosmosaccount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (a Account) Address(accPrefix string) (string, error) {
152152
func (a Account) PubKey() (string, error) {
153153
pk, err := a.Record.GetPubKey()
154154
if err != nil {
155-
return "", nil
155+
return "", err
156156
}
157157

158158
return pk.String(), nil

ignite/pkg/httpstatuschecker/httpstatuschecker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func (c *checker) check(ctx context.Context) (bool, error) {
4242
}
4343
res, err := c.c.Do(req)
4444
if err != nil {
45+
// ignore some errors like "connect: connection refused"
4546
return false, nil
4647
}
4748
defer res.Body.Close()

0 commit comments

Comments
 (0)