Skip to content

Commit

Permalink
Repair DAG diagram that was broken in ipfs#125
Browse files Browse the repository at this point in the history
This makes some slight changes so that gofmt won't break it again (which seems to have been the source of the original breakage).
  • Loading branch information
Mr0grog committed Sep 2, 2022
1 parent 2c23c3e commit 6354f1c
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions importer/balanced/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//
// Notes:
//
// 1. In the implementation. `FSNodeOverDag` structure is used for representing
// 1. In the implementation, `FSNodeOverDag` structure is used for representing
// the UnixFS node encoded inside the DAG node.
// (see https://github.com/ipfs/go-ipfs/pull/5118.)
//
Expand All @@ -27,27 +27,29 @@
// should be used (like the trickle builder does).
// (See https://github.com/ipfs/go-ipfs/pull/5120.)
//
// +-------------+
// | Root 4 |
// +-------------+
// |
// +--------------------------+----------------------------+
// | |
// +-------------+ +-------------+
// | Node 2 | | Node 5 |
// +-------------+ +-------------+
// | |
// +-------------+-------------+ +-------------+
// | | |
// +-------------+ +-------------+ +-------------+
// | Node 1 | | Node 3 | | Node 6 |
// +-------------+ +-------------+ +-------------+
// | | |
// +------+------+ +------+------+ +------+
// | | | | |
// +=========+ +=========+ +=========+ +=========+ +=========+
// | Chunk 1 | | Chunk 2 | | Chunk 3 | | Chunk 4 | | Chunk 5 |
// +=========+ +=========+ +=========+ +=========+ +=========+
// Example balanced DAG:
//
// +-------------+
// | Root 4 |
// +-------------+
// |
// +--------------------------+----------------------------+
// | |
// +-------------+ +-------------+
// | Node 2 | | Node 5 |
// +-------------+ +-------------+
// | |
// +-------------+-------------+ +-------------+
// | | |
// +-------------+ +-------------+ +-------------+
// | Node 1 | | Node 3 | | Node 6 |
// +-------------+ +-------------+ +-------------+
// | | |
// +------+------+ +------+------+ +------+
// | | | | |
// +=========+ +=========+ +=========+ +=========+ +=========+
// | Chunk 1 | | Chunk 2 | | Chunk 3 | | Chunk 4 | | Chunk 5 |
// +=========+ +=========+ +=========+ +=========+ +=========+
package balanced

import (
Expand Down

0 comments on commit 6354f1c

Please sign in to comment.