all: Unused parameter should be replaced by underscore (#8464)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent
7bdb5faa9c
commit
5130c414da
+2
-2
@@ -23,7 +23,7 @@ type stunFilter struct {
|
||||
mut sync.Mutex
|
||||
}
|
||||
|
||||
func (f *stunFilter) Outgoing(out []byte, addr net.Addr) {
|
||||
func (f *stunFilter) Outgoing(out []byte, _ net.Addr) {
|
||||
if !f.isStunPayload(out) {
|
||||
panic("not a stun payload")
|
||||
}
|
||||
@@ -33,7 +33,7 @@ func (f *stunFilter) Outgoing(out []byte, addr net.Addr) {
|
||||
f.mut.Unlock()
|
||||
}
|
||||
|
||||
func (f *stunFilter) ClaimIncoming(in []byte, addr net.Addr) bool {
|
||||
func (f *stunFilter) ClaimIncoming(in []byte, _ net.Addr) bool {
|
||||
if f.isStunPayload(in) {
|
||||
f.mut.Lock()
|
||||
_, ok := f.ids[string(in[8:20])]
|
||||
|
||||
Reference in New Issue
Block a user