Skip to content

Commit ac16ac5

Browse files
Merge pull request ipfs#3458 from mib-kd743naq/master
Switch unixfs.Metadata.MimeType to optional
2 parents a542dea + 8ee4280 commit ac16ac5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

blocks/blockstore/util/remove.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type RmBlocksOpts struct {
2929

3030
func RmBlocks(blocks bs.GCBlockstore, pins pin.Pinner, cids []*cid.Cid, opts RmBlocksOpts) (<-chan interface{}, error) {
3131
// make the channel large enough to hold any result to avoid
32-
// blocking while holding the GCLock
32+
// blocking while holding the GCLock
3333
out := make(chan interface{}, len(cids))
3434
go func() {
3535
defer close(out)

unixfs/pb/unixfs.pb.go

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unixfs/pb/unixfs.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ message Data {
1616
}
1717

1818
message Metadata {
19-
required string MimeType = 1;
19+
optional string MimeType = 1;
2020
}

0 commit comments

Comments
 (0)