Skip to content

Commit

Permalink
Merge pull request #3458 from mib-kd743naq/master
Browse files Browse the repository at this point in the history
Switch unixfs.Metadata.MimeType to optional
  • Loading branch information
whyrusleeping authored Dec 2, 2016
2 parents a542dea + 8ee4280 commit ac16ac5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blocks/blockstore/util/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type RmBlocksOpts struct {

func RmBlocks(blocks bs.GCBlockstore, pins pin.Pinner, cids []*cid.Cid, opts RmBlocksOpts) (<-chan interface{}, error) {
// make the channel large enough to hold any result to avoid
// blocking while holding the GCLock
// blocking while holding the GCLock
out := make(chan interface{}, len(cids))
go func() {
defer close(out)
Expand Down
10 changes: 7 additions & 3 deletions unixfs/pb/unixfs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion unixfs/pb/unixfs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ message Data {
}

message Metadata {
required string MimeType = 1;
optional string MimeType = 1;
}

0 comments on commit ac16ac5

Please sign in to comment.