removing unnecessary channel

This commit is contained in:
Gabriel mermelstein 2024-10-07 15:18:46 +03:00
parent 6ed72907f4
commit 2c0eb59d9f
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D
1 changed files with 3 additions and 6 deletions

View File

@ -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)