auto-reload

This commit is contained in:
2023-12-13 08:35:01 +01:00
parent ab2f2ff439
commit e691640055
6 changed files with 89 additions and 14 deletions

View File

@@ -221,10 +221,6 @@ func (app *Application) ListServer(ctx context.Context, timeout time.Duration) (
close(echan)
close(rchan)
if err := ctx.Err(); err != nil {
return nil, err
}
duplicates := make(map[int]bool, sockCount*3)
res := make([]models.Server, 0, sockCount*3)
for v := range rchan {