immediate failure on bad upstream connection states
This commit is contained in:
parent
d785388d88
commit
b470b9a5b3
@ -119,7 +119,7 @@ func NewNTFServer(configFile string, verbose bool) (*NTFServer, error) {
|
|||||||
|
|
||||||
err := ret.LaunchUpstreamWorker(telegramUserId, hubNick)
|
err := ret.LaunchUpstreamWorker(telegramUserId, hubNick)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Reconnecting upstream for '%s': %s", hubNick, err.Error()) // fatal
|
log.Fatalf("Couldn't reconnect upstream for '%s': %s", hubNick, err.Error()) // fatal - inconsistent DB is the only possible cause
|
||||||
}
|
}
|
||||||
|
|
||||||
launchedAny = true
|
launchedAny = true
|
||||||
|
Loading…
Reference in New Issue
Block a user