-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement progressive call results #53
Implement progressive call results #53
Conversation
9269cf5
to
8b674ce
Compare
import ( | ||
"context" | ||
"fmt" | ||
"github.com/xconnio/xconn-go" |
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.
should be arranged correctly. the CI should have failed
session.go
Outdated
req <- &CallResponse{msg: result} | ||
progress, _ := result.Details()["progress"].(bool) | ||
if progress { | ||
if progressHandler, exists := s.progressHandlers.Load(result.RequestID()); exists { |
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.
should be assigned first and tested later.
receiveProgress, _ := invocation.Details()["receive_progress"].(bool) | ||
if receiveProgress { | ||
inv.SendProgress = func(arguments []any, kwArguments map[string]any) error { | ||
yield := messages.NewYield(invocation.RequestID(), map[string]any{"progress": true}, arguments, kwArguments) |
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.
should refer to the const that's created in the dealer.go
8b674ce
to
227026d
Compare
download..