Skip to content

Commit

Permalink
fix: cache config
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvis8x7b committed Oct 4, 2024
1 parent d3bdfae commit d60b808
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions template/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
import os
import site
from functools import lru_cache
from pathlib import Path

import bittensor as bt
Expand Down Expand Up @@ -191,6 +192,7 @@ def add_args(parser):
pass


@lru_cache(maxsize=1)
def get_config():
"""Returns the configuration object specific to this miner or validator after adding relevant arguments."""
parser = argparse.ArgumentParser()
Expand Down

0 comments on commit d60b808

Please sign in to comment.