From 2c0eb59d9f45e3effde594ea9c1675e5123e2a91 Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Mon, 7 Oct 2024 15:18:46 +0300 Subject: [PATCH] removing unnecessary channel --- wakuv2/nwaku.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wakuv2/nwaku.go b/wakuv2/nwaku.go index 4596cae6e..c5234ee78 100644 --- a/wakuv2/nwaku.go +++ b/wakuv2/nwaku.go @@ -256,13 +256,10 @@ import ( "encoding/json" "errors" "fmt" - "os" - "os/signal" "runtime" "strconv" "strings" "sync" - "syscall" "time" "unsafe" @@ -1027,9 +1024,9 @@ func (w *Waku) Start() error { return err } - ch := make(chan os.Signal, 1) - signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM) - <-ch + // ch := make(chan os.Signal, 1) + // signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM) + //<-ch // if err = w.node.Start(w.ctx); err != nil { // return fmt.Errorf("failed to start go-waku node: %v", err)