Skip to content

Commit e2ad587

Browse files
committed
1 parent 30a4582 commit e2ad587

File tree

1 file changed

+3
-3
lines changed
  • hibernate-reactive-core/src/main/java/org/hibernate/reactive/context/impl

1 file changed

+3
-3
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/context/impl/VertxContext.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void injectServices(ServiceRegistryImplementor serviceRegistry) {
3535
public <T> void put(Key<T> key, T instance) {
3636
final io.vertx.core.Context context = Vertx.currentContext();
3737
if ( context != null ) {
38-
context.put( key, instance );
38+
context.putLocal( key, instance );
3939
}
4040
else {
4141
throw LOG.notVertxContextActive();
@@ -47,7 +47,7 @@ public <T> void put(Key<T> key, T instance) {
4747
public <T> T get(Key<T> key) {
4848
final io.vertx.core.Context context = Vertx.currentContext();
4949
if ( context != null ) {
50-
return (T) context.get( key );
50+
return (T) context.getLocal( key );
5151
}
5252
else {
5353
return null;
@@ -58,7 +58,7 @@ public <T> T get(Key<T> key) {
5858
public void remove(Key<?> key) {
5959
final io.vertx.core.Context context = Vertx.currentContext();
6060
if ( context != null ) {
61-
context.remove( key );
61+
context.removeLocal( key );
6262
}
6363
}
6464

0 commit comments

Comments
 (0)