Permalink
Browse files

fix typo of method (#248)

  • Loading branch information...
1 parent d24e001 commit 7115f2fe96f604586e4224fbcb77e62482090924 @COFFEE-ZJU COFFEE-ZJU committed with beiwei30 Jun 12, 2016
@@ -212,7 +212,7 @@ public void destroy() {
public Result invoke(final Invocation invocation) throws RpcException {
- checkWheatherDestoried();
+ checkWhetherDestroyed();
LoadBalance loadbalance;
@@ -227,7 +227,7 @@ public Result invoke(final Invocation invocation) throws RpcException {
return doInvoke(invocation, invokers, loadbalance);
}
- protected void checkWheatherDestoried() {
+ protected void checkWhetherDestroyed() {
if(destroyed){
throw new RpcException("Rpc cluster invoker for " + getInterface() + " on consumer " + NetUtils.getLocalHost()
@@ -65,7 +65,7 @@ public Result doInvoke(Invocation invocation, final List<Invoker<T>> invokers, L
//重试时,进行重新选择,避免重试时invoker列表已发生变化.
//注意:如果列表发生了变化,那么invoked判断会失效,因为invoker示例已经改变
if (i > 0) {
- checkWheatherDestoried();
+ checkWhetherDestroyed();
copyinvokers = list(invocation);
//重新检查一下
checkInvokers(copyinvokers, invocation);

0 comments on commit 7115f2f

Please sign in to comment.