Skip to content

Commit 4e0888c

Browse files
committed
use not deprecated version of func
1 parent bfe51b6 commit 4e0888c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

providers/http/nfqueue/nfqueue.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,13 @@ func (w *HTTPProvider) serve(domain, token, keyAuth string) error {
177177
return 0
178178
}
179179

180+
ignoreerr := func(err error) int {
181+
log.Print(err)
182+
return 0
183+
}
184+
180185
// Register your function to listen on nflqueue queue
181-
err = nf.Register(w.context, handlepacket)
186+
err = nf.RegisterWithErrorFunc(w.context, handlepacket, ignoreerr)
182187
if err != nil {
183188
fmt.Println(err)
184189
return nil

0 commit comments

Comments
 (0)