Skip to content

Commit

Permalink
fix function name to signal it's public
Browse files Browse the repository at this point in the history
  • Loading branch information
adal-chiriliuc-reef committed Oct 25, 2024
1 parent 67a0980 commit f0dcef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compute_horde/compute_horde/mv_protocol/validator_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from ..base.volume import Volume, VolumeType
from ..base_requests import BaseRequest, JobMixin
from ..executor_class import ExecutorClass
from ..utils import MachineSpecs, _json_dumps_default
from ..utils import MachineSpecs, json_dumps_default

SAFE_DOMAIN_REGEX = re.compile(r".*")

Expand Down Expand Up @@ -99,7 +99,7 @@ class ReceiptPayload(pydantic.BaseModel):

def blob_for_signing(self):
# pydantic v2 does not support sort_keys anymore.
return json.dumps(self.model_dump(), sort_keys=True, default=_json_dumps_default)
return json.dumps(self.model_dump(), sort_keys=True, default=json_dumps_default)


class JobFinishedReceiptPayload(ReceiptPayload):
Expand Down
2 changes: 1 addition & 1 deletion compute_horde/compute_horde/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_validators(netuid=12, network="finney", block: int | None = None) -> lis
return neurons[:VALIDATORS_LIMIT]


def _json_dumps_default(obj):
def json_dumps_default(obj):
if isinstance(obj, datetime.datetime):
return obj.isoformat()

Expand Down

0 comments on commit f0dcef7

Please sign in to comment.