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

feat: add flag to listen on TCP #28

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

andrewrynhard
Copy link
Contributor

Signed-off-by: Andrew Rynhard andrew@rynhard.io

cmd/runtime/main.go Outdated Show resolved Hide resolved
Copy link

@invidian invidian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions :)

cmd/runtime/main.go Show resolved Hide resolved
@@ -26,10 +27,12 @@ import (
"github.com/cosi-project/runtime/pkg/state/protobuf/server"
)

var addressAndPort string

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Must it be a global variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was already the pattern used. I just went with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to address in a follow up, unless we feel it should be addressed in this PR.

cmd/runtime/main.go Outdated Show resolved Hide resolved
@andrewrynhard
Copy link
Contributor Author

make fmt touched generated files. You can ignore.

proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why these changes popped up?

cmd/runtime/main.go Outdated Show resolved Hide resolved
Adds a flag for setting the address and port to bind to. TCP is the
default, but if a socket path is specified that will be used instead.

Signed-off-by: Andrew Rynhard <andrew@rynhard.io>
@andrewrynhard andrewrynhard merged commit 225827c into cosi-project:master Apr 23, 2021
@andrewrynhard andrewrynhard deleted the socket branch April 23, 2021 18:40
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.

3 participants