Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4c80700

Browse files
committed
rename
1 parentf607b45 commit4c80700

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎coderd/aitasks.go‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ func (api *API) taskSend(rw http.ResponseWriter, r *http.Request) {
624624
}
625625

626626
iferr=api.authAndDoWithTaskSidebarAppClient(r,taskID,func(ctx context.Context,client*http.Client,appURL*url.URL)error {
627-
status,err:=doAgentapiStatusRequest(ctx,client,appURL)
627+
status,err:=agentapiDoStatusRequest(ctx,client,appURL)
628628
iferr!=nil {
629629
returnerr
630630
}
@@ -645,7 +645,7 @@ func (api *API) taskSend(rw http.ResponseWriter, r *http.Request) {
645645
reqBody.Body.Content=req.Input
646646
reqBody.Body.Type="user"
647647

648-
req,err:=newAgentapiRequest(ctx,http.MethodPost,appURL,"message",reqBody)
648+
req,err:=agentapiNewRequest(ctx,http.MethodPost,appURL,"message",reqBody)
649649
iferr!=nil {
650650
returnerr
651651
}
@@ -800,7 +800,7 @@ func (api *API) authAndDoWithTaskSidebarAppClient(
800800
returndo(ctx,client,parsedURL)
801801
}
802802

803-
funcnewAgentapiRequest(ctx context.Context,methodstring,appURL*url.URL,appURLPathstring,bodyany) (*http.Request,error) {
803+
funcagentapiNewRequest(ctx context.Context,methodstring,appURL*url.URL,appURLPathstring,bodyany) (*http.Request,error) {
804804
u:=*appURL
805805
u.Path=path.Join(appURL.Path,appURLPath)
806806

@@ -829,8 +829,8 @@ func newAgentapiRequest(ctx context.Context, method string, appURL *url.URL, app
829829
returnreq,nil
830830
}
831831

832-
funcdoAgentapiStatusRequest(ctx context.Context,client*http.Client,appURL*url.URL) (string,error) {
833-
req,err:=newAgentapiRequest(ctx,http.MethodGet,appURL,"status",nil)
832+
funcagentapiDoStatusRequest(ctx context.Context,client*http.Client,appURL*url.URL) (string,error) {
833+
req,err:=agentapiNewRequest(ctx,http.MethodGet,appURL,"status",nil)
834834
iferr!=nil {
835835
return"",err
836836
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp