mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-28 00:39:31 +08:00
fix(config) rename variable GCR -> SNR
This commit is contained in:
@ -9,7 +9,7 @@ type SupernodeClientConfig struct {
|
|||||||
Servers []string
|
Servers []string
|
||||||
}
|
}
|
||||||
|
|
||||||
var DefaultGCRServers = []string{
|
var DefaultSNRServers = []string{
|
||||||
"/ip4/104.236.176.52/tcp/4002/ipfs/QmXdb7tWTxdFEQEFgWBqkuYSrZd3mXrC7HxkD4krGNYx2U",
|
"/ip4/104.236.176.52/tcp/4002/ipfs/QmXdb7tWTxdFEQEFgWBqkuYSrZd3mXrC7HxkD4krGNYx2U",
|
||||||
"/ip4/104.236.179.241/tcp/4002/ipfs/QmVRqViDByUxjUMoPnjurjKvZhaEMFDtK35FJXHAM4Lkj6",
|
"/ip4/104.236.179.241/tcp/4002/ipfs/QmVRqViDByUxjUMoPnjurjKvZhaEMFDtK35FJXHAM4Lkj6",
|
||||||
"/ip4/104.236.151.122/tcp/4002/ipfs/QmSZwGx8Tn8tmcM4PtDJaMeUQNRhNFdBLVGPzRiNaRJtFH",
|
"/ip4/104.236.151.122/tcp/4002/ipfs/QmSZwGx8Tn8tmcM4PtDJaMeUQNRhNFdBLVGPzRiNaRJtFH",
|
||||||
@ -23,7 +23,7 @@ var DefaultGCRServers = []string{
|
|||||||
func initSNRConfig() (*SupernodeClientConfig, error) {
|
func initSNRConfig() (*SupernodeClientConfig, error) {
|
||||||
// TODO perform validation
|
// TODO perform validation
|
||||||
return &SupernodeClientConfig{
|
return &SupernodeClientConfig{
|
||||||
Servers: DefaultGCRServers,
|
Servers: DefaultSNRServers,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func run() error {
|
func run() error {
|
||||||
servers := config.DefaultGCRServers
|
servers := config.DefaultSNRServers
|
||||||
fmt.Println("using gcr remotes:")
|
fmt.Println("using gcr remotes:")
|
||||||
for _, p := range servers {
|
for _, p := range servers {
|
||||||
fmt.Println("\t", p)
|
fmt.Println("\t", p)
|
||||||
|
Reference in New Issue
Block a user