Skip to content
Snippets Groups Projects
Commit af0b3e15 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed the issue

parent b28b580d
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,11 @@ package auth ...@@ -3,8 +3,11 @@ package auth
import ( import (
"gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/id"
"sync" "sync"
jww "github.com/spf13/jwalterweatherman"
) )
type callbackMap struct { type callbackMap struct {
generalCallback []interface{} generalCallback []interface{}
specificCallback map[id.ID]interface{} specificCallback map[id.ID]interface{}
...@@ -63,7 +66,7 @@ func (cm *callbackMap) Get(id *id.ID) []interface{} { ...@@ -63,7 +66,7 @@ func (cm *callbackMap) Get(id *id.ID) []interface{} {
if specific, ok := cm.specificCallback[*id]; ok { if specific, ok := cm.specificCallback[*id]; ok {
cbList = append(cbList, specific) cbList = append(cbList, specific)
} else { } else {
cbList = append(cbList, cm.generalCallback) cbList = append(cbList, cm.generalCallback...)
} }
return cbList return cbList
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment