File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 99 "fmt"
1010 "time"
1111
12+ "github.com/smartcontractkit/chainlink-common/pkg/chipingress"
1213 "google.golang.org/grpc"
1314 "google.golang.org/grpc/credentials"
1415)
@@ -58,10 +59,15 @@ func (p *staticAuth) RequireTransportSecurity() bool {
5859 return p .requireTransportSecurity
5960}
6061
61- func NewStaticAuth (headers map [string ]string , requireTransportSecurity bool ) HeaderProvider {
62+ func NewStaticAuth (headers map [string ]string , requireTransportSecurity bool ) Auth {
6263 return & staticAuth {headers , requireTransportSecurity }
6364}
6465
66+ // Deprecated: use NewStaticAuth instead
67+ func NewStaticAuthHeaderProvider (headers map [string ]string ) chipingress.HeaderProvider {
68+ return & staticAuth {headers : headers }
69+ }
70+
6571type rotatingAuth struct {
6672 csaPubKey ed25519.PublicKey
6773 signer Signer
You can’t perform that action at this time.
0 commit comments