Permalink
Browse files

remove casting

  • Loading branch information...
1 parent bcd582b commit bfb4666b3d70bd6edcac29a805a1d7c65b1f54e2 @kimchy kimchy committed Oct 16, 2011
@@ -43,7 +43,6 @@
import org.elasticsearch.index.settings.IndexSettings;
import org.elasticsearch.index.shard.IndexShardState;
import org.elasticsearch.index.shard.service.IndexShard;
-import org.elasticsearch.index.shard.service.InternalIndexShard;
import org.elasticsearch.indices.IndicesLifecycle;
import org.elasticsearch.indices.IndicesService;
@@ -197,7 +196,7 @@ private IndexService percolatorIndexService() {
// add a listener that will update based on changes done to the _percolate index
// the relevant indices with loaded queries
if (indexShard.shardId().index().name().equals(INDEX_NAME)) {
- ((InternalIndexShard) indexShard).indexingService().addListener(realTimePercolatorOperationListener);
+ indexShard.indexingService().addListener(realTimePercolatorOperationListener);
}
}

0 comments on commit bfb4666

Please sign in to comment.