Skip to content

Commit d12b4a9

Browse files
committed
Cosmetic change in ServiceMethodInvoker
1 parent 0105200 commit d12b4a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services-api/src/main/java/io/scalecube/services/methods/ServiceMethodInvoker.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ private Mono<Principal> mapPrincipal(RequestContext context) {
247247
}
248248
}
249249

250-
return principalMapper
251-
.map(context)
250+
return Mono.defer(() -> principalMapper.map(context))
252251
.switchIfEmpty(Mono.just(context.principal()))
253252
.onErrorMap(ServiceMethodInvoker::toForbiddenException);
254253
}

0 commit comments

Comments
 (0)