Skip to content

Commit

Permalink
goat: longer timeout for CAR export
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Jan 7, 2025
1 parent 2314a61 commit 5c734f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/goat/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/bluesky-social/indigo/atproto/syntax"
"github.com/bluesky-social/indigo/repo"
"github.com/bluesky-social/indigo/xrpc"
"github.com/bluesky-social/indigo/util"

"github.com/ipfs/go-cid"
"github.com/urfave/cli/v2"
Expand Down Expand Up @@ -93,6 +94,10 @@ func runRepoExport(cctx *cli.Context) error {
return fmt.Errorf("no PDS endpoint for identity")
}

// set longer timeout, for large CAR files
xrpcc.Client = util.RobustHTTPClient()
xrpcc.Client.Timeout = 180 * time.Second

carPath := cctx.String("output")
if carPath == "" {
// NOTE: having the rev in the the path might be nice
Expand Down

0 comments on commit 5c734f2

Please # to comment.