Skip to content

Commit

Permalink
PR FIXUP - Use the context added to the func sig
Browse files Browse the repository at this point in the history
Annoyingly I added it exactly and only for this reason and somehow forgot/got distracted from actually using it...
  • Loading branch information
AndrewSisley committed May 21, 2024
1 parent 3b707bd commit 66631fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/acp.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ func NewACP(ctx context.Context, opts ...ACPOpt) (immutable.Option[acp.ACP], err

case LocalACPType:
var acpLocal acp.ACPLocal
acpLocal.Init(context.Background(), options.path)
acpLocal.Init(ctx, options.path)
return immutable.Some[acp.ACP](&acpLocal), nil

default:
var acpLocal acp.ACPLocal
acpLocal.Init(context.Background(), options.path)
acpLocal.Init(ctx, options.path)
return immutable.Some[acp.ACP](&acpLocal), nil
}
}

0 comments on commit 66631fe

Please sign in to comment.