Skip to content

Commit

Permalink
fmt the auth
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingSinger committed Jan 19, 2020
1 parent 3301f7b commit e146ad8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions common/extension/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ import (
"github.com/apache/dubbo-go/filter"
)

var(
var (
authenticators = make(map[string]func() filter.Authenticator)
accesskeyStorages = make(map[string]func() filter.AccesskeyStorage)
)


func SetAuthenticator(name string, fcn func() filter.Authenticator) {
authenticators[name] = fcn
}
Expand All @@ -30,4 +29,4 @@ func GetAccesskeyStorages(name string) filter.AccesskeyStorage {
panic("accesskeyStorages for " + name + " is not existing, make sure you have import the package.")
}
return accesskeyStorages[name]()
}
}

0 comments on commit e146ad8

Please sign in to comment.