Skip to content

Commit ffb2b55

Browse files
Removed unnecessary code
1 parent d06e513 commit ffb2b55

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

cmd/laclm/main.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -158,29 +158,6 @@ func run(ctx context.Context) error {
158158
grpc.WithKeepaliveParams(kacp),
159159
)
160160

161-
/* THIS CODE IS SAFE TO BE REMOVED */
162-
for _, system := range config.BackendConfig.FileSystemServers {
163-
/* check if system is remote */
164-
if system.Remote != nil {
165-
address := fmt.Sprintf("%s:%d", system.Remote.Host, system.Remote.Port)
166-
go func(addr string, errCh chan<- error) {
167-
_, err := pool.GetConn(addr, errCh)
168-
if err != nil {
169-
zap.L().Error("Failed to get connect with a daemon",
170-
zap.String("Address", addr),
171-
zap.Error(err),
172-
)
173-
}
174-
175-
/* now test for connections */
176-
zap.L().Info("Connected to",
177-
zap.String("address", addr),
178-
)
179-
180-
}(address, errChLog)
181-
}
182-
}
183-
184161
/*
185162
initializing scheduler
186163
scheduler uses context to quit - part of waitgroup

0 commit comments

Comments
 (0)