Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions gittensor/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
"""

import os
from typing import Dict


def backoff_seconds(attempt: int, base: int = 5, cap: int = 30) -> int:
return min(base * (2**attempt), cap)


def parse_repo_name(repo_data: Dict):
"""Normalizes and converts repository name from dict"""
return f'{repo_data["owner"]["login"]}/{repo_data["name"]}'.lower()


def get_contract_address() -> str:
"""Get contract address. Override via CONTRACT_ADDRESS env var for dev/testing.

Expand Down
Loading