Fix the bug that entry in SentinelReactorSubscriber did not carry expected entry type

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
This commit is contained in:
Eric Zhao 2019-03-29 10:00:19 +08:00
parent 4b0960c942
commit afc77c2b3e
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class SentinelReactorSubscriber<T> extends InheritableBaseSubscriber<T> {
ContextUtil.enter(sentinelContextConfig.getContextName(), sentinelContextConfig.getOrigin());
}
try {
AsyncEntry entry = SphU.asyncEntry(entryConfig.getResourceName());
AsyncEntry entry = SphU.asyncEntry(entryConfig.getResourceName(), entryConfig.getEntryType());
this.currentEntry = entry;
actual.onSubscribe(this);
} catch (BlockException ex) {