Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BACK-1791: ensure prop IPFS gateway gets used instead of pinata #94

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

zylora
Copy link
Contributor

@zylora zylora commented Nov 9, 2023

Description

Motivation and Context

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@zylora zylora requested review from mattmalec and owen-zora November 9, 2023 18:48
@@ -26,14 +26,23 @@ def __init__(
max_retries: int = 0,
async_adapter_configs: Optional[list[AdapterConfig]] = None,
) -> None:
from offchain.metadata.pipelines.metadata_pipeline import (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason to import inside this func?

@@ -57,35 +66,42 @@ def set_timeout(self, timeout: int): # type: ignore[no-untyped-def]
"""
self.timeout = timeout

def _get_async_adapter_for_uri(self, uri: str) -> Optional[Adapter]:
if self.async_adapter_configs is not None:
for async_adapter_config in self.async_adapter_configs:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you think this could be slightly rewritten to avoid being deeply nested? also why do we need a for loop with this?

@mattmalec
Copy link
Collaborator

remember to do the release publishing steps! :)

@zylora zylora merged commit b88c916 into main Nov 10, 2023
3 checks passed
@zylora zylora deleted the BACK-1791 branch November 10, 2023 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants