You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Log error when relay subsystem could not be initialized due to missing dependency
121
+
if!enableRelayTransport {
122
+
ifenableRelayService {
123
+
logger.Fatal("Failed to enable `Swarm.RelayService`, it requires `Swarm.Transports.Network.Relay` to be true.")
124
+
}
125
+
ifenableRelayClient {
126
+
logger.Fatal("Failed to enable `Swarm.RelayClient`, it requires `Swarm.Transports.Network.Relay` to be true.")
127
+
}
128
+
}
118
129
119
-
// Warn about a deprecated option.
130
+
// Force users to migrate old config.
120
131
// nolint
121
132
ifcfg.Swarm.DisableRelay {
122
-
logger.Error("The 'Swarm.DisableRelay' config field is deprecated.")
123
-
ifenableRelayTransport {
124
-
logger.Error("'Swarm.DisableRelay' has been overridden by 'Swarm.Transports.Network.Relay'")
125
-
} else {
126
-
logger.Error("Use the 'Swarm.Transports.Network.Relay' config field instead")
127
-
}
133
+
logger.Fatal("The 'Swarm.DisableRelay' config field was removed."+
134
+
"Use the 'Swarm.Transports.Network.Relay' instead.")
128
135
}
129
136
// nolint
130
137
ifcfg.Swarm.EnableAutoRelay {
131
-
logger.Error("The 'Swarm.EnableAutoRelay' config field is deprecated.")
132
-
ifcfg.Swarm.RelayClient.Enabled==config.Default {
133
-
logger.Error("Use the 'Swarm.AutoRelay.Enabled' config field instead")
134
-
} else {
135
-
logger.Error("'Swarm.EnableAutoRelay' has been overridden by 'Swarm.AutoRelay.Enabled'")
136
-
}
138
+
logger.Fatal("The 'Swarm.EnableAutoRelay' config field was removed."+
139
+
"Use the 'Swarm.RelayClient.Enabled' instead.")
137
140
}
138
141
// nolint
139
142
ifcfg.Swarm.EnableRelayHop {
140
-
logger.Fatal("The `Swarm.EnableRelayHop` config field is ignored.\n"+
143
+
logger.Fatal("The `Swarm.EnableRelayHop` config field was removed.\n"+
141
144
"Use `Swarm.RelayService` to configure the circuit v2 relay.\n"+
142
-
"If you want to continue running a circuit v1 relay, please use the standalone relay daemon: https://github.com/libp2p/go-libp2p-relay-daemon (with RelayV1.Enabled: true)")
145
+
"If you want to continue running a circuit v1 relay, please use the standalone relay daemon: https://dist.ipfs.io/#libp2p-relay-daemon (with RelayV1.Enabled: true)")
0 commit comments