-
Notifications
You must be signed in to change notification settings - Fork 236
bitswap/README.md: Cleaning up the format #168
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
Conversation
bitswap/README.md
Outdated
Bitswap is the data trading module for ipfs, it manages requesting and sending blocks to and from other peers in the network. Bitswap has two main jobs, the first is to acquire blocks requested by the client from the network. The second is to judiciously send blocks in its posession to other peers who want them. | ||
|
||
Bitswap is the data trading module for ipfs, it manages requesting and sending | ||
blocks to and from other peers in the network. Bitswap has two main jobs, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping it one line is fine :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha, I'll change that back. Kind of unfortunately painful to deal with for my text editor, but I'll get by :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dgrisham which editor are you using?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kakoune -- it has visual soft-wrapping, but unfortunately it still behaves like a single line when you use that feature. It's a young text editor, so these things come with the territory. I just made a Bash function that uses pandoc
to convert the input file to one with 80-character lines, then once I exit the text editor it converts it back so that the paragraphs are all on one line again (as it is here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest LGTM
21cb5ca
to
580e1c3
Compare
bitswap/README.md
Outdated
} | ||
|
||
optional Wantlist wantlist = 1; | ||
repeated bytes blocks = 2; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the ```?
bitswap/README.md
Outdated
# Implementation details | ||
|
||
Also, make sure to read - https://github.com/ipfs/go-ipfs/tree/master/exchange/bitswap#go-ipfs-implementation | ||
Also, make sure to read - <https://github.com/ipfs/go-ipfs/tree/master/exchange/bitswap#go-ipfs-implementation> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for angle brackets
bitswap/README.md
Outdated
// 2) if not -> ask bitswap | ||
// 2.1) bitswap will cb() once the block is back, once. bitswap will write to the repo as well. | ||
}) | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not remove the ```, they make the code rendered with sintax highlighting
@diasdavid ACK on those comments -- when I used |
0f19c3e
to
6a952da
Compare
@diasdavid Hey, finally got back to this, let me know what you think. |
6a952da
to
ee54085
Compare
bitswap/README.md
Outdated
|
||
# Status of this spec | ||
Status of this spec | ||
=================== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why switch from # to ====
?
- c) Send it. | ||
1. Ensure it has a connection to its peer | ||
2. Grab the message to be sent | ||
3. Send it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will not auto enum in Github flavoured markdown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure? Seems to indicate that it will on the spec here, at least if I'm understanding it correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right! :)
bitswap/README.md
Outdated
- bitswap-decision-engine | ||
- bitswap-message | ||
- bitswap-net | ||
- bitswap-wantlist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too many spaces
bitswap/README.md
Outdated
- bitswap.peerConnected(peer) | ||
- add peer to peer set + send them wantlist (maybe) | ||
- bitswap.peerDisconnected(peer) | ||
- remove peer from peer set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too many spaces
ee54085
to
327deb5
Compare
@diasdavid Updated again -- the brackets around links are there again, because Edit: To be more clear about that: everything in this version of the document is exactly what Github's CommonMark writer outputs, except for the codeblocks that you pointed out before -- I edited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks ! :)
@diasdavid Thanks David! Would you mind merging? I don't have permissions to do so. |
Going to start updating this document soon, so I figured I'd handle the reformatting before I made any content changes to keep commits/updates clean.