From 4e0888c8837174c3b1f737e6c634a70550a0e472 Mon Sep 17 00:00:00 2001 From: Seo Suchan Date: Wed, 22 Feb 2023 20:17:03 +0900 Subject: [PATCH] use not deprecated version of func --- providers/http/nfqueue/nfqueue.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/providers/http/nfqueue/nfqueue.go b/providers/http/nfqueue/nfqueue.go index 44ed91e5e92..fadabe25b75 100644 --- a/providers/http/nfqueue/nfqueue.go +++ b/providers/http/nfqueue/nfqueue.go @@ -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