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

fix index picking for ad file #10

Closed
1 task done
bgunson opened this issue Feb 23, 2023 · 1 comment
Closed
1 task done

fix index picking for ad file #10

bgunson opened this issue Feb 23, 2023 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@bgunson
Copy link
Owner

bgunson commented Feb 23, 2023

  • fix index picking in peer/main.js line 29. If length files is 0, then files[Math.floor(Math.random() * files.length)] == files[0] == undefined
@bgunson bgunson added the bug Something isn't working label Feb 23, 2023
@bgunson bgunson added this to the Demo 3: Replication milestone Feb 23, 2023
@bgunson bgunson added the enhancement New feature or request label Feb 23, 2023
@bgunson
Copy link
Owner Author

bgunson commented Feb 23, 2023

If only one peer is connected to proxy, and files.length == 0, then replication will fail from another peer, so:

  • respond to proxy "give-ad" event with some sort of indicator stating that it failed
  • maybe, proxy just serves its default ads

@bgunson bgunson linked a pull request Mar 4, 2023 that will close this issue
@bgunson bgunson closed this as completed Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants