Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix(pubsub): multibase in pubsub http rpc #3922

Merged
merged 15 commits into from
Dec 15, 2021
Merged
Prev Previous commit
Next Next commit
refactor: sharding config in go-ipfs 0.11
Experimental.ShardingEnabled was replaced by autosharding.
To simulate the old behavior ("shard everything") one needs to set
Internal.UnixFSShardingSizeThreshold to 1B.

This is a temporary fix for sharding tests until js-ipfs implements
ipfs/js-ipfs-unixfs#149
  • Loading branch information
lidel committed Dec 7, 2021
commit 746dbef82951de451b820047a20af902c88e3ba3
6 changes: 3 additions & 3 deletions packages/interface-ipfs-core/src/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ export function testAdd (factory, options) {
sharding: true
},
config: {
// enable sharding for go
Experimental: {
ShardingEnabled: true
// enable sharding for go with automatic threshold dropped to the minimum so it shards everything
Internal: {
UnixFSShardingSizeThreshold: '1B'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-ipfs-core/src/files/cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ export function testCp (factory, options) {
sharding: true
},
config: {
// enable sharding for go
Experimental: {
ShardingEnabled: true
// enable sharding for go with automatic threshold dropped to the minimum so it shards everything
Internal: {
UnixFSShardingSizeThreshold: '1B'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-ipfs-core/src/files/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ export function testLs (factory, options) {
sharding: true
},
config: {
// enable sharding for go
Experimental: {
ShardingEnabled: true
// enable sharding for go with automatic threshold dropped to the minimum so it shards everything
Internal: {
UnixFSShardingSizeThreshold: '1B'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-ipfs-core/src/files/mkdir.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ export function testMkdir (factory, options) {
sharding: true
},
config: {
// enable sharding for go
Experimental: {
ShardingEnabled: true
// enable sharding for go with automatic threshold dropped to the minimum so it shards everything
Internal: {
UnixFSShardingSizeThreshold: '1B'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-ipfs-core/src/files/mv.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ export function testMv (factory, options) {
sharding: true
},
config: {
// enable sharding for go
Experimental: {
ShardingEnabled: true
// enable sharding for go with automatic threshold dropped to the minimum so it shards everything
Internal: {
UnixFSShardingSizeThreshold: '1B'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-ipfs-core/src/files/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ export function testRead (factory, options) {
sharding: true
},
config: {
// enable sharding for go
Experimental: {
ShardingEnabled: true
// enable sharding for go with automatic threshold dropped to the minimum so it shards everything
Internal: {
UnixFSShardingSizeThreshold: '1B'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-ipfs-core/src/files/rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ export function testRm (factory, options) {
sharding: true
},
config: {
// enable sharding for go
Experimental: {
ShardingEnabled: true
// enable sharding for go with automatic threshold dropped to the minimum so it shards everything
Internal: {
UnixFSShardingSizeThreshold: '1B'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-ipfs-core/src/files/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ export function testStat (factory, options) {
sharding: true
},
config: {
// enable sharding for go
Experimental: {
ShardingEnabled: true
// enable sharding for go with automatic threshold dropped to the minimum so it shards everything
Internal: {
UnixFSShardingSizeThreshold: '1B'
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/interface-ipfs-core/src/files/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,9 @@ export function testWrite (factory, options) {
sharding: true
},
config: {
// enable sharding for go
Experimental: {
ShardingEnabled: true
// enable sharding for go with automatic threshold dropped to the minimum so it shards everything
Internal: {
UnixFSShardingSizeThreshold: '1B'
}
}
}
Expand Down