Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjiaqi authored and yinjiaqi committed Jan 22, 2025
1 parent 67d6f49 commit 1cea57b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go/appbuilder/component_client_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ type Json struct {

type ComponentClientIterator interface {
// Next 获取处理结果,如果返回error不为空,迭代器自动失效,不允许再调用此方法
Next() (*ComponentRunResponseData, error)
Next() (*ComponentRunResponse, error)
}

type ComponentClientStreamIterator struct {
Expand All @@ -152,7 +152,7 @@ type ComponentClientStreamIterator struct {
body io.ReadCloser
}

func (t *ComponentClientStreamIterator) Next() (*ComponentRunResponseData, error) {
func (t *ComponentClientStreamIterator) Next() (*ComponentRunResponse, error) {
data, err := t.r.ReadMessageLine()
if err != nil && !(err == io.EOF) {
t.body.Close()
Expand Down Expand Up @@ -181,7 +181,7 @@ type ComponentClientOnceIterator struct {
requestID string
}

func (t *ComponentClientOnceIterator) Next() (*ComponentRunResponseData, error) {
func (t *ComponentClientOnceIterator) Next() (*ComponentRunResponse, error) {
data, err := io.ReadAll(t.body)
if err != nil {
return nil, fmt.Errorf("requestID=%s, err=%v", t.requestID, err)
Expand Down

0 comments on commit 1cea57b

Please sign in to comment.