Skip to content

Conversation

@bjosv
Copy link

@bjosv bjosv commented Jan 23, 2024

This PR fixes the error when attempting to build trex-emu-proxy with:
go install cmd-proxy/trex-emu-proxy.go

The API to get the timer channel changed via c870182 and the new API is now used.

Additionally the following issues, indicated by golangci-lint, are fixed:

    cmd-proxy/trex-emu-proxy.go:33:2: field `port` is unused (unused)
            port       *int
            ^
    cmd-proxy/trex-emu-proxy.go:182:2: unreachable: unreachable code (govet)
            o.tctx.Veth.SimulatorCleanup()
            ^

No need for cleanups since when the process is terminated from shell it will exit in the MainLoop (no signal handling exist).

bjosv added 2 commits January 23, 2024 11:48
Fixes following issues indicated by golangci-lint:

cmd-proxy/trex-emu-proxy.go:33:2: field `port` is unused (unused)
	port       *int
	^
cmd-proxy/trex-emu-proxy.go:182:2: unreachable: unreachable code (govet)
	o.tctx.Veth.SimulatorCleanup()
	^

No need for cleanups after the MainLoop since when the proxy process is
terminated from shell the program will exit (no signal handling exist).

Signed-off-by: Björn Svensson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant