handshake: remove unneeded tokenProtector interface (#4585)

This commit is contained in:
Marten Seemann
2024-07-19 22:45:20 -06:00
committed by GitHub
parent 7825250d3f
commit 82b275212c
3 changed files with 8 additions and 16 deletions

View File

@@ -46,7 +46,7 @@ type TokenGenerator struct {
// NewTokenGenerator initializes a new TokenGenerator
func NewTokenGenerator(key TokenProtectorKey) *TokenGenerator {
return &TokenGenerator{tokenProtector: newTokenProtector(key)}
return &TokenGenerator{tokenProtector: *newTokenProtector(key)}
}
// NewRetryToken generates a new token for a Retry for a given source address