Removed usage of deprecated method

Change-Id: I896fd7db68a0c86893423548bc0a3489ac42ac77
This commit is contained in:
Madan Jampani 2016-07-14 10:43:25 -07:00 committed by Gerrit Code Review
parent ed969bac22
commit 222229ea85

View File

@ -590,15 +590,12 @@ public class DistributedFlowRuleStore
log.trace("Forwarding removeFlowRule to {}, which is the master for device {}", log.trace("Forwarding removeFlowRule to {}, which is the master for device {}",
master, deviceId); master, deviceId);
return Futures.get(clusterCommunicator.sendAndReceive( return Futures.getUnchecked(clusterCommunicator.sendAndReceive(
rule, rule,
REMOVE_FLOW_ENTRY, REMOVE_FLOW_ENTRY,
SERIALIZER::encode, SERIALIZER::encode,
SERIALIZER::decode, SERIALIZER::decode,
master), master));
FLOW_RULE_STORE_TIMEOUT_MILLIS,
TimeUnit.MILLISECONDS,
RuntimeException.class);
} }
private FlowRuleEvent removeFlowRuleInternal(FlowEntry rule) { private FlowRuleEvent removeFlowRuleInternal(FlowEntry rule) {