Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Fix disallow node temporary ban (#5057)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmazurek authored Jan 20, 2020
1 parent 773626f commit e4929a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions golem/task/server/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ def verification_finished(
# Experimental feature. Try to spread subtasks fairly amongst
# providers.
self.disallow_node(
node_id=task_to_compute.provider_id,
node_id=node.key,
timeout_seconds=config_desc.disallow_node_timeout_seconds,
persist=False,
)
if config_desc.disallow_ip_timeout_seconds is not None:
# Experimental feature. Try to spread subtasks fairly amongst
# providers.
self.disallow_ip(
ip=self.address,
ip=node.pub_addr,
timeout_seconds=config_desc.disallow_ip_timeout_seconds,
)

Expand Down

0 comments on commit e4929a8

Please sign in to comment.