Skip to content

Commit

Permalink
fix: remove useless sleep
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Greggi <[email protected]>
  • Loading branch information
alegrey91 committed Jun 10, 2024
1 parent 7104727 commit 432edd7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/daemon/management.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"os"
"os/signal"
"syscall"
"time"

"github.com/alegrey91/fwdctl/internal/rules"
"github.com/alegrey91/fwdctl/pkg/iptables"
Expand Down Expand Up @@ -123,7 +122,6 @@ func Start(ipt *iptables.IPTablesInstance, rulesFile string) int {

go func() {
for {
time.Sleep(time.Second)
select {
case <-sigChnl:
// flush rules before exit
Expand Down

0 comments on commit 432edd7

Please sign in to comment.