Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit fb44173

Browse files
committed
Took Try Catch out of loop
1 parent 333c73d commit fb44173

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/org/flowvisor/api/handlers/configuration/UpdateFlowSpace.java

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,18 @@ private int processFlows(List<Map<String, Object>> params)
125125
update.setForcedQueue(fqueue.longValue());
126126

127127
}
128-
129128
//list.add(update);
130-
try {
131-
//flowSpace.removeRule(update.getId());
132-
FlowSpaceImpl.getProxy().removeRule(update.getId());
133-
FlowSpaceImpl.getProxy().addRule(update);
134-
//flowSpace.addRule(update);
135-
} catch (ConfigError e) {
136-
FVLog.log(LogLevel.DEBUG, null, e.getMessage());
137-
}
138129
//updateFlowEntry(flowSpace, update);
139-
140130
}
131+
try {
132+
flowSpace.removeRule(update.getId());
133+
FlowSpaceImpl.getProxy().removeRule(update.getId());
134+
FlowSpaceImpl.getProxy().addRule(update);
135+
flowSpace.addRule(update);
136+
} catch (ConfigError e) {
137+
FVLog.log(LogLevel.DEBUG, null, e.getMessage());
138+
}
139+
141140
return update.getId();
142141
}
143142

0 commit comments

Comments
 (0)