JSON RPC compatibility workarounds to support lbry-sdk #75

Merged
moodyjon merged 3 commits from jsonrpc_compat1 into master 2022-10-29 17:42:24 +02:00
Showing only changes of commit 3bdad6ccf8 - Show all commits

View file

@ -49,10 +49,6 @@ func interruptListener() <-chan struct{} {
case sig := <-interruptChannel: case sig := <-interruptChannel:
log.Infof("Received signal (%s). Already "+ log.Infof("Received signal (%s). Already "+
"shutting down...", sig) "shutting down...", sig)
case <-shutdownRequestChannel:
log.Info("Shutdown requested. Already " +
"shutting down...")
} }
jeffreypicard commented 2022-10-29 15:45:15 +02:00 (Migrated from github.com)
Review

I think this should actually stay. I identified the issue with the spamming when it's killed, which was using the stop.Ch() as the shutdownRequestChannel, keeping it as a second channel that could be used later on to possibly kill this from the outside still makes sense.

I think this should actually stay. I identified the issue with the spamming when it's killed, which was using the stop.Ch() as the shutdownRequestChannel, keeping it as a second channel that could be used later on to possibly kill this from the outside still makes sense.
} }
}() }()