Added and establishing listening for peer information gossip.
This commit is contained in:
@@ -49,8 +49,9 @@ func AddHandler(handler func()) {
|
||||
// Create the channel and start the main interrupt handler that invokes
|
||||
// all other callbacks and exits if not already done.
|
||||
_, loc, line, _ := runtime.Caller(1)
|
||||
msg := fmt.Sprintf("%s:%d", loc, line)
|
||||
log.T.Ln("\n"+msg, "added interrupt handler")
|
||||
loc = strings.Split(loc, indra.PathBase)[1]
|
||||
msg := fmt.Sprintf("\r%s:%d", loc, line)
|
||||
log.T.Ln(msg, "added interrupt handler")
|
||||
if ch == nil {
|
||||
ch = make(chan os.Signal)
|
||||
signal.Notify(ch, signals...)
|
||||
|
||||
Reference in New Issue
Block a user