Skip to content

Commit b96dd65

Browse files
committed
use temp variable
1 parent 788612d commit b96dd65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hsds/headnode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ async def register(request):
289289
# all the slots are filled, see if there is any unhealthy node
290290
# and remove that
291291
for i in range(len(active_list)):
292-
node_id = active_list[i]
293-
node = nodes[node_id]
292+
id = active_list[i]
293+
node = nodes[id]
294294
if not node.is_healthy():
295295
active_list[i] = None # clear the slot
296296
break

0 commit comments

Comments
 (0)