Skip to content

Commit

Permalink
Remove timeout for downloading binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 6, 2023
1 parent bd21397 commit db30565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/gitlab/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func DownloadMautrixBridgeBinary(ctx context.Context, bridge, path string, noUpd
if err != nil {
return fmt.Errorf("failed to prepare download request: %w", err)
}
resp, err := cli.Do(req)
resp, err := noTimeoutCli.Do(req)
if err != nil {
return fmt.Errorf("failed to download artifact: %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions api/gitlab/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"maunium.net/go/mautrix"
)

var noTimeoutCli = &http.Client{}
var cli = &http.Client{Timeout: 30 * time.Second}

type queryRequestBody struct {
Expand Down

0 comments on commit db30565

Please sign in to comment.