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

One Folder per License Feature #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

JoaoSRaposo
Copy link
Collaborator

With this fix is possible to have multiple swarm folders (one folder per license)

Copy link
Member

@mahiarirani mahiarirani left a comment

Choose a reason for hiding this comment

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

The basic improvement in this looks fine, just an idea to clean up otherwise, good to be released.

@@ -72,7 +72,7 @@ class BeeSwarm extends Common
public function __construct($params)
{
$this->parseParams($params);
$this->id = 'ethswarm::' . $this->api_url;
$this->id = 'ethswarm::' .str_replace("https://", "", $this->api_url) . '::'.$this->access_key;
Copy link
Member

Choose a reason for hiding this comment

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

Actually, the api_url should be always pointing to the same location, thus we can get rid of it to shorten these data store in the db and in fact just link them with the token/access_key.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agree! Even if we have a usecase in the future (not sure what it could be right now) that a used needs to point to multiple locations, the token is enought to diferentiate. Also the field id is limited to 64 chars, so I agree on the improvement.

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.

2 participants