This is an automated email from the ASF dual-hosted git repository.
yong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-go.git
The following commit(s) were added to refs/heads/master by this push:
new af91e9c Fix unexpected nil pointer when reading iterm from keyring
(#470)
af91e9c is described below
commit af91e9ca0ee29ebf8a451baeb174564717e77576
Author: Yong Zhang <[email protected]>
AuthorDate: Sat Feb 20 16:36:36 2021 +0800
Fix unexpected nil pointer when reading iterm from keyring (#470)
---
oauth2/store/keyring.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/oauth2/store/keyring.go b/oauth2/store/keyring.go
index fd49baf..8a024f5 100644
--- a/oauth2/store/keyring.go
+++ b/oauth2/store/keyring.go
@@ -117,7 +117,7 @@ func (f *KeyringStore) WhoAmI(audience string) (string,
error) {
defer f.lock.Unlock()
key := hashKeyringKey(audience)
- authItem, err := f.kr.GetMetadata(key)
+ authItem, err := f.kr.Get(key)
if err != nil {
if err == keyring.ErrKeyNotFound {
return "", ErrNoAuthenticationData