1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00

WithRoles variadic args (#1395)

Co-authored-by: Ben Toogood <ben@micro.mu>
This commit is contained in:
ben-toogood
2020-03-24 10:18:34 +00:00
committed by GitHub
parent c1978265ab
commit 86272a3064
6 changed files with 9 additions and 9 deletions

View File

@ -37,7 +37,7 @@ func TestInspect(t *testing.T) {
opts := []token.GenerateOption{
token.WithMetadata(md),
token.WithRoles(roles),
token.WithRoles(roles...),
}
tok, err := b.Generate(subject, opts...)