Skip to content

Commit d0a8c76

Browse files
committed
Change function type name
Change CancelProviderFunc to UnsubscribeFunc
1 parent 40a89c5 commit d0a8c76

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ testdata/*
77
redis8tests.sh
88
coverage.txt
99
**/coverage.txt
10-
.vscode
10+
.vscode
11+
tmp/*

auth/auth.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ type StreamingCredentialsProvider interface {
1010
// It returns the current credentials, a cancel function to unsubscribe from the provider,
1111
// and an error if any.
1212
// TODO(ndyakov): Should we add context to the Subscribe method?
13-
Subscribe(listener CredentialsListener) (Credentials, CancelProviderFunc, error)
13+
Subscribe(listener CredentialsListener) (Credentials, UnsubscribeFunc, error)
1414
}
1515

16-
// CancelProviderFunc is a function that is used to cancel the subscription to the credentials provider.
16+
// UnsubscribeFunc is a function that is used to cancel the subscription to the credentials provider.
1717
// It is used to unsubscribe from the provider when the credentials are no longer needed.
18-
type CancelProviderFunc func() error
18+
type UnsubscribeFunc func() error
1919

2020
// CredentialsListener is an interface that defines the methods for a credentials listener.
2121
// It is used to receive updates when the credentials change.

0 commit comments

Comments
 (0)