Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable linter for channel reading #891

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion internal/vppinit/links.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ func initDevice(ctx context.Context, vppConn api.Connection, tunnelIP net.IP, de
// InitLinks creates AF_PACKET interface if needed and put the given interfaces in promisc mode
func InitLinks(ctx context.Context, vppConn api.Connection, deviceNames map[string]string, tunnelIP net.IP) error {
ch := make(chan error)
defer close(ch)
defer func() {
// nolint: revive
for range ch {
}
}()

for _, device := range deviceNames {
go initDevice(ctx, vppConn, tunnelIP, device, ch)
Expand Down