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

Scaffold decision logic #1590

Closed
wants to merge 3 commits into from
Closed

Scaffold decision logic #1590

wants to merge 3 commits into from

Conversation

kbala444
Copy link
Contributor

License: MIT
Signed-off-by: Karthik Bala karthikbala444@gmail.com

This is a WIP but these are most of the changes I've made for decision making. The partner queue is sorted using LedgerCompare() and partners can be blocked when popped off the partner queue using a strategy function.

License: MIT
Signed-off-by: Karthik Bala <karthikbala444@gmail.com>
@kbala444 kbala444 mentioned this pull request Aug 19, 2015
28 tasks
@@ -10,20 +11,46 @@ import (
pq "github.com/ipfs/go-ipfs/thirdparty/pq"
)

var PEER_BLOCK_TIME time.Duration = time.Second * 5
Copy link
Member

Choose a reason for hiding this comment

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

PeerBlockTime

Copy link
Member

Choose a reason for hiding this comment

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

yep 👍

t.Fatal("Fastsend was not top request :'(.")
}

// lethargic larry sends more than fastsend
Copy link
Member

Choose a reason for hiding this comment

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

👍 name

@jbenet
Copy link
Member

jbenet commented Aug 23, 2015

Some comments above, but this LGTM.

@jbenet
Copy link
Member

jbenet commented Aug 23, 2015

seems not to build. run make test locally to find build errors

@ghost ghost added topic/bitswap Topic bitswap and removed codereview labels Dec 22, 2015
@whyrusleeping
Copy link
Member

closing until further progress is made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/bitswap Topic bitswap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants