-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
There was a problem hiding this 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
Outdated
@@ -26,10 +27,12 @@ import ( | |||
"github.com/cosi-project/runtime/pkg/state/protobuf/server" | |||
) | |||
|
|||
var addressAndPort string |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
22638fa
to
51c7d25
Compare
|
proto "github.com/golang/protobuf/proto" | ||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" | ||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
reflect "reflect" |
There was a problem hiding this comment.
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?
0768496
to
4ac518b
Compare
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>
Signed-off-by: Andrew Rynhard andrew@rynhard.io