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

Fix build failure in trex-emu-proxy #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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