Skip to content

Commit

Permalink
use not deprecated version of func
Browse files Browse the repository at this point in the history
  • Loading branch information
orangepizza committed Feb 22, 2023
1 parent bfe51b6 commit 4e0888c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion providers/http/nfqueue/nfqueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,13 @@ func (w *HTTPProvider) serve(domain, token, keyAuth string) error {
return 0
}

ignoreerr := func(err error) int {
log.Print(err)
return 0
}

// Register your function to listen on nflqueue queue
err = nf.Register(w.context, handlepacket)
err = nf.RegisterWithErrorFunc(w.context, handlepacket, ignoreerr)
if err != nil {
fmt.Println(err)
return nil
Expand Down

0 comments on commit 4e0888c

Please sign in to comment.