1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-19 04:50:02 +02:00

go.mod: Upgrade github.com/eosswedenorg-go/eos-ship-client to v0.1.3

This commit is contained in:
Henrik Hautakoski 2022-11-28 17:13:43 +01:00
parent 46b0db2ff2
commit 10e40bbcc3
3 changed files with 28 additions and 18 deletions

View file

@ -79,9 +79,11 @@ func readerLoop() {
if err != nil {
log.WithError(err).Error("Failed to read from ship")
// Reconnect
if err.Type == shipclient.ErrSockRead {
state = RS_CONNECT
if shErr, ok := err.(shipclient.ShipClientError); ok {
// Reconnect
if shErr.Type == shipclient.ErrSockRead {
state = RS_CONNECT
}
}
}
}