Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Aug 29, 2024
1 parent a2c7667 commit 7322d50
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion internal/core/dify_invocation/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ type InvokeStorageRequest struct {

type InvokeAppRequest struct {
BaseInvokeDifyRequest
requests.BaseRequestInvokeModel

InvokeAppSchema
}
Expand Down
2 changes: 1 addition & 1 deletion internal/server/controllers/remote_debugging.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func GetRemoteDebuggingKey(c *gin.Context) {
BindRequest[requests.RequestGetRemoteDebuggingKey](
BindRequest(
c, func(request requests.RequestGetRemoteDebuggingKey) {
c.JSON(200, service.GetRemoteDebuggingKey(request.TenantID))
},
Expand Down
3 changes: 1 addition & 2 deletions internal/utils/http_requests/http_warpper.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ func RequestAndParseStream[T any](client *http.Client, url string, method string
// unmarshal
t, err := parser.UnmarshalJsonBytes[T](data)
if err != nil {
ch.WriteError(err)
break
continue
}

ch.Write(t)
Expand Down

0 comments on commit 7322d50

Please sign in to comment.