Skip to content

Commit

Permalink
adapt widmgr imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmierczak committed Sep 29, 2023
1 parent 18ebac9 commit 1b82f78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/widmgr/widmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ func NewWIDMgr(signer IdentitySigner, a *structs.Allocation, logger hclog.Logger
widSpecs: widspecs,
signer: signer,
minWait: 10 * time.Second,
lastToken: map[cstructs.TaskIdentity]*structs.SignedWorkloadIdentity{},
watchers: map[cstructs.TaskIdentity][]chan *structs.SignedWorkloadIdentity{},
lastToken: map[TaskIdentity]*structs.SignedWorkloadIdentity{},
watchers: map[TaskIdentity][]chan *structs.SignedWorkloadIdentity{},
stopCtx: stopCtx,
stop: stop,
logger: logger.Named("widmgr"),
Expand Down Expand Up @@ -196,9 +196,9 @@ func (m *WIDMgr) Shutdown() {
// getIdentities fetches all signed identities or returns an error.
func (m *WIDMgr) getIdentities() error {
// get the default identity signed by the plan applier
defaultTokens := map[cstructs.TaskIdentity]*structs.SignedWorkloadIdentity{}
defaultTokens := map[TaskIdentity]*structs.SignedWorkloadIdentity{}
for taskName, signature := range m.defaultSignedIdentities {
id := cstructs.TaskIdentity{
id := TaskIdentity{
TaskName: taskName,
IdentityName: "default",
}
Expand Down

0 comments on commit 1b82f78

Please sign in to comment.