-
Notifications
You must be signed in to change notification settings - Fork 12
Implement Subscribe API call for BYOC #613
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
Conversation
edwardrf
commented
Aug 8, 2024
•
edited
Loading
edited
- Implement subscribe API call for byoc aws client, using ecsEventsHandler interface to share data from log tailing to the Subscribe api call
- Make collection stream compliant with the server stream interface, keep all channel logic inside collection stream
- Update term package and tail command to output the same log entry in a single log call, so messages will not be interleaved
also fix collection stream error handling
Keep all channel logic inside collection stream code
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.
LGTM. minor typo fix.
1ad7836
to
fff08ef
Compare
@@ -158,7 +184,8 @@ func (t *Term) Printlnc(c Color, v ...any) (int, error) { | |||
} | |||
|
|||
func (t *Term) Printfc(c Color, format string, v ...any) (int, error) { | |||
return outputf(t.stdout, c, format, v...) | |||
line := ensureNewline(fmt.Sprintf(format, v...)) |
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.
why was this changed?
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.
Removed the less usefull outputf
func above
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.
just suggestion to simplify append
Co-authored-by: Lio李歐 <[email protected]>
This reverts commit ba38ee9.