Remove redundant IndexProvider
config now that host is shared
Now that host is shared having separate config for listen and announce addresses along with graphsync limit makes no sense since all of that is shared with the markets host and datatransfer manager.
This commit is contained in:
parent
2ebc111b70
commit
a09f386537
@ -273,30 +273,6 @@
|
||||
# env var: LOTUS_INDEXPROVIDER_PUBLISHERKIND
|
||||
#PublisherKind = "dtsync"
|
||||
|
||||
# Binding address for the libp2p host contacted by indexer nodes to sync the list of advertised
|
||||
# multihashes. Note that when port is set to 0 a random port is generated at runtime and may be
|
||||
# different on every restart. The format of the strings specified must conform to multiaddress;
|
||||
# see https://multiformats.io/multiaddr/
|
||||
#
|
||||
# type: []string
|
||||
# env var: LOTUS_INDEXPROVIDER_LISTENADDRESSES
|
||||
#ListenAddresses = ["/ip4/0.0.0.0/tcp/0", "/ip6/::/tcp/0"]
|
||||
|
||||
# The address the endpoints at which the data associated to the advertised
|
||||
# multihashes can be retrieved. If not specified, the ListenAddresses are used instead. The format
|
||||
# of the strings specified must conform to multiaddress; see https://multiformats.io/multiaddr/
|
||||
#
|
||||
# type: []string
|
||||
# env var: LOTUS_INDEXPROVIDER_ANNOUNCEADDRESSES
|
||||
#AnnounceAddresses = []
|
||||
|
||||
# The maximum number of simultaneous requests syncing the list of advertised multihashes between
|
||||
# the indexers and the index provider.
|
||||
#
|
||||
# type: uint64
|
||||
# env var: LOTUS_INDEXPROVIDER_MAXSIMULTANEOUSTRANSFERS
|
||||
#MaxSimultaneousTransfers = 20
|
||||
|
||||
[IndexProvider.HttpPublisher]
|
||||
# env var: LOTUS_INDEXPROVIDER_HTTPPUBLISHER_LISTENMULTIADDR
|
||||
#ListenMultiaddr = "/ip4/0.0.0.0/tcp/3104/http"
|
||||
|
@ -2,6 +2,7 @@ package config
|
||||
|
||||
import (
|
||||
"encoding"
|
||||
|
||||
"os"
|
||||
"strconv"
|
||||
"time"
|
||||
@ -182,13 +183,7 @@ func DefaultStorageMiner() *StorageMiner {
|
||||
},
|
||||
|
||||
IndexProvider: IndexProviderConfig{
|
||||
ListenAddresses: []string{
|
||||
"/ip4/0.0.0.0/tcp/0",
|
||||
"/ip6/::/tcp/0",
|
||||
},
|
||||
AnnounceAddresses: []string{},
|
||||
|
||||
MaxSimultaneousTransfers: DefaultSimultaneousTransfers,
|
||||
Ingest: ipconfig.NewIngest(),
|
||||
},
|
||||
|
||||
Subsystems: MinerSubsystemConfig{
|
||||
@ -232,10 +227,6 @@ func DefaultStorageMiner() *StorageMiner {
|
||||
},
|
||||
}
|
||||
|
||||
// TODO: Remove hardcoded defaults once provider library exposes them.
|
||||
// See: https://github.com/filecoin-project/index-provider/issues/108
|
||||
cfg.IndexProvider.Ingest = ipconfig.NewIngest()
|
||||
|
||||
cfg.Common.API.ListenAddress = "/ip4/127.0.0.1/tcp/2345/http"
|
||||
cfg.Common.API.RemoteListenAddress = "127.0.0.1:2345"
|
||||
return cfg
|
||||
|
@ -358,32 +358,6 @@ see https://docs.filecoin.io/mine/lotus/miner-configuration/#using-filters-for-f
|
||||
Comment: ``,
|
||||
},
|
||||
},
|
||||
"IndexProviderConfig": []DocField{
|
||||
{
|
||||
Name: "ListenAddresses",
|
||||
Type: "[]string",
|
||||
|
||||
Comment: `Binding address for the libp2p host contacted by indexer nodes to sync the list of advertised
|
||||
multihashes. Note that when port is set to 0 a random port is generated at runtime and may be
|
||||
different on every restart. The format of the strings specified must conform to multiaddress;
|
||||
see https://multiformats.io/multiaddr/`,
|
||||
},
|
||||
{
|
||||
Name: "AnnounceAddresses",
|
||||
Type: "[]string",
|
||||
|
||||
Comment: `The address the endpoints at which the data associated to the advertised
|
||||
multihashes can be retrieved. If not specified, the ListenAddresses are used instead. The format
|
||||
of the strings specified must conform to multiaddress; see https://multiformats.io/multiaddr/`,
|
||||
},
|
||||
{
|
||||
Name: "MaxSimultaneousTransfers",
|
||||
Type: "uint64",
|
||||
|
||||
Comment: `The maximum number of simultaneous requests syncing the list of advertised multihashes between
|
||||
the indexers and the index provider.`,
|
||||
},
|
||||
},
|
||||
"Libp2p": []DocField{
|
||||
{
|
||||
Name: "ListenAddresses",
|
||||
|
@ -163,21 +163,6 @@ type DealmakingConfig struct {
|
||||
|
||||
type IndexProviderConfig struct {
|
||||
config.Ingest
|
||||
|
||||
// Binding address for the libp2p host contacted by indexer nodes to sync the list of advertised
|
||||
// multihashes. Note that when port is set to 0 a random port is generated at runtime and may be
|
||||
// different on every restart. The format of the strings specified must conform to multiaddress;
|
||||
// see https://multiformats.io/multiaddr/
|
||||
ListenAddresses []string
|
||||
|
||||
// The address the endpoints at which the data associated to the advertised
|
||||
// multihashes can be retrieved. If not specified, the ListenAddresses are used instead. The format
|
||||
// of the strings specified must conform to multiaddress; see https://multiformats.io/multiaddr/
|
||||
AnnounceAddresses []string
|
||||
|
||||
// The maximum number of simultaneous requests syncing the list of advertised multihashes between
|
||||
// the indexers and the index provider.
|
||||
MaxSimultaneousTransfers uint64
|
||||
}
|
||||
|
||||
type RetrievalPricing struct {
|
||||
|
Loading…
Reference in New Issue
Block a user