Skip to content

Commit 4df37f9

Browse files
committed
refactor: removing weight setting from rewardapp
1 parent 2874321 commit 4df37f9

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

services/rewarding/app.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,6 @@ def _compare_miner_commits(
381381
def run(self):
382382
bt.logging.info("Starting reward app loop.")
383383
# Try set weights after initial sync
384-
try:
385-
bt.logging.info("Initializing weights")
386-
self.set_weights()
387-
except Exception:
388-
bt.logging.error(f"Initial set weights error: {traceback.format_exc()}")
389384

390385
while True:
391386
# Check if we need to start a new forward thread
@@ -399,12 +394,6 @@ def run(self):
399394
self.forward_thread.start()
400395
bt.logging.info("Started new forward thread")
401396

402-
try:
403-
self.set_weights()
404-
bt.logging.success("Set weights completed")
405-
except Exception:
406-
bt.logging.error(f"Set weights error: {traceback.format_exc()}")
407-
408397
try:
409398
self.resync_metagraph()
410399
bt.logging.success("Resync metagraph completed")

0 commit comments

Comments
 (0)