Skip to content

Commit

Permalink
Remove DH key-sharding config (#1850)
Browse files Browse the repository at this point in the history
* Remove DH key-sharding config
* update to tagged version of go-libipni
  • Loading branch information
gammazero authored May 31, 2023
1 parent 433145d commit cb52346
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 0 additions & 2 deletions command/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ func daemonAction(cctx *cli.Context) error {
// Create indexer core
indexerCore := engine.New(resultCache, valueStore,
engine.WithDHBatchSize(cfg.Indexer.DHBatchSize),
engine.WithDHKeyShard(cfg.Indexer.DHEnableKeySharding),
engine.WithDHShardConcurrency(cfg.Indexer.DHShardConcurrency),
engine.WithDHStore(cfg.Indexer.DHStoreURL),
engine.WithDHStoreCluster(cfg.Indexer.DHStoreClusterURLs),
engine.WithVSNoNewMH(cfg.Indexer.VSNoNewMH),
Expand Down
5 changes: 0 additions & 5 deletions config/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ type Indexer struct {
// requests to the DHStore service. A value < 1 results in the default
// size.
DHBatchSize int
// DHEnableKeySharding enables key-sharded writes to DHStore.
DHEnableKeySharding bool
// DHShardConcurrency configures the number of goroutines used to send
// requests to dhstore for each multihash. A value of 0 uses the default.
DHShardConcurrency int
// DHStoreURL is the base URL for the DHStore service. This option value
// tells the indexer core to use a DHStore service, if configured.
DHStoreURL string
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ require (
github.com/ipld/go-ipld-prime v0.20.0
github.com/ipld/go-ipld-prime/storage/dsadapter v0.0.0-20230102063945-1a409dc236dd
github.com/ipld/go-storethehash v0.3.13
github.com/ipni/go-indexer-core v0.7.8
github.com/ipni/go-indexer-core v0.7.9
github.com/ipni/go-libipni v0.1.2-0.20230531205959-4d528f6b5fe7
github.com/libp2p/go-libp2p v0.27.3
github.com/libp2p/go-msgio v0.3.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ github.com/ipld/go-storethehash v0.3.13 h1:1T6kX5K57lAgxbsGitZEaZMAR3RdWch2kO8ok
github.com/ipld/go-storethehash v0.3.13/go.mod h1:KCYpzmamubnSwm7fvWcCkm0aIwQh4WRNtzrKK4pVhAQ=
github.com/ipni/dhstore v0.0.2-0.20230324212407-ceb5f50e3bad h1:nS2Zq9bHG0eFzRjz1naWKl6I1YYPGWI1yWJK+zX3UGM=
github.com/ipni/dhstore v0.0.2-0.20230324212407-ceb5f50e3bad/go.mod h1:XI6XW5Eu97zY5PEK2ZRuESh8mYkxIZYRTMcknPVbbrc=
github.com/ipni/go-indexer-core v0.7.8 h1:Qj8jr2mhaOJnAhHljFeNzn9MsnX/LrC5rCklflm3n0Y=
github.com/ipni/go-indexer-core v0.7.8/go.mod h1:EvhJc9EgziT8G/mWLTeSL2Zio0ynQ24Ee6c0N16cdMU=
github.com/ipni/go-indexer-core v0.7.9 h1:maxecPV0hKUU2EoDc7ue0JebbOx8IgCdRz+PxnzqnS4=
github.com/ipni/go-indexer-core v0.7.9/go.mod h1:EvhJc9EgziT8G/mWLTeSL2Zio0ynQ24Ee6c0N16cdMU=
github.com/ipni/go-libipni v0.1.2-0.20230531205959-4d528f6b5fe7 h1:/7N+Gxj97auHU9a7H0o6sOVN3a29mN8tVH5WE71Geyw=
github.com/ipni/go-libipni v0.1.2-0.20230531205959-4d528f6b5fe7/go.mod h1:GKp/Ff+w03w1jc5Xt4AE2Oj730fDKSEIhl8/wFNpyVU=
github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI=
Expand Down

0 comments on commit cb52346

Please sign in to comment.