MCPcopy Create free account
hub / github.com/eth-easl/dirigent / removeRegistrationServers

Method removeRegistrationServers

internal/data_plane/haproxy/manager.go:248–261  ·  view source on GitHub ↗
(transaction string)

Source from the content-addressed store, hash-verified

246}
247
248func (api *API) removeRegistrationServers(transaction string) {
249 _, servers, err := api.client.Configuration.GetServers(RegistrationServerBackend, transaction)
250 if err != nil {
251 logrus.Errorf("Error listing all registration server backends - %v", err)
252 return
253 }
254
255 for _, s := range servers {
256 err = api.client.Configuration.DeleteServer(s.Name, RegistrationServerBackend, transaction, 0)
257 if err != nil {
258 logrus.Errorf("Error removing server %s - %v", s.Name, err)
259 }
260 }
261}
262
263func (api *API) genericRevise(backend string, addressesToKeep []string) (success bool, anyChanges bool) {
264 errorIn := ""

Callers 1

genericReviseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected