Skip to content

Commit e686eb4

Browse files
newtorkjjtang1985
andauthored
Fix argument order (#1876)
Co-authored-by: Junjie Tang <[email protected]>
1 parent 9354aa4 commit e686eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs-java/features/multi-tenancy/thread-context.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ By contrast, to pass on the current context, but modifying the tenant (and only
221221

222222
```java
223223
Tenant myTenant = new DefaultTenant("foo");
224-
Callable myTaskWithTenant = () -> TenantAccessor.executeWithTenant(myTask, myTenant);
224+
Callable myTaskWithTenant = () -> TenantAccessor.executeWithTenant(myTenant, myTask);
225225

226226
ThreadContextExecutors.submit(myTaskWithTenant);
227227
```

0 commit comments

Comments
 (0)