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:
parent
46b0db2ff2
commit
10e40bbcc3
3 changed files with 28 additions and 18 deletions
8
main.go
8
main.go
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue