Skip to content

Commit

Permalink
Merge pull request #7 from TRON-US/BTFS-1027
Browse files Browse the repository at this point in the history
BTFS-1027: phase 1 changes for directory support
  • Loading branch information
taiyangc authored Nov 21, 2019
2 parents 434384d + b60eabd commit 3cc4bcf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions splitting.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ func SizeSplitterGen(size int64) SplitterGen {
}
}

func MetaSplitterGen(size int64) SplitterGen {
return func(r io.Reader) Splitter {
return NewMetaSplitter(r, uint64(size))
}
}

// Chan returns a channel that receives each of the chunks produced
// by a splitter, along with another one for errors.
func Chan(s Splitter) (<-chan []byte, <-chan error) {
Expand Down

0 comments on commit 3cc4bcf

Please sign in to comment.