File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ var (
3131// Sum gives back the tree to the pool and guaranteed to leave
3232// the tree and itself in a state reusable for hashing a new chunk.
3333type Hasher struct {
34- * Conf // configuration
35- bmt * tree // prebuilt BMT resource for flowcontrol and proofs
36- size int // bytes written to Hasher since last Reset()
37- pos int // index of rightmost currently open segment
38- result chan []byte // result channel
39- errc chan error // error channel
40- span []byte // The span of the data subsumed under the chunk
41- resultOnce * sync.Once // ensures only one result is sent (pointer allows reset)
34+ * Conf // configuration
35+ bmt * tree // prebuilt BMT resource for flowcontrol and proofs
36+ size int // bytes written to Hasher since last Reset()
37+ pos int // index of rightmost currently open segment
38+ result chan []byte // result channel
39+ errc chan error // error channel
40+ span []byte // The span of the data subsumed under the chunk
41+ resultOnce * sync.Once // ensures only one result is sent (pointer allows reset)
4242}
4343
4444// NewHasher gives back an instance of a Hasher struct
You can’t perform that action at this time.
0 commit comments