Skip to content

Commit

Permalink
fix: curio: refactor curio graceful shutdown (filecoin-project#11794)
Browse files Browse the repository at this point in the history
* refactor curio shutdown

* apply suggestions, remove provider cli
  • Loading branch information
LexLuthr authored and Nagaprasadvr committed Apr 4, 2024
1 parent 7bfa0ab commit c01ced5
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 430 deletions.
3 changes: 1 addition & 2 deletions cmd/curio/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"os"
"strings"
"time"

"github.com/pkg/errors"
"github.com/urfave/cli/v2"
Expand Down Expand Up @@ -128,7 +127,7 @@ var runCmd = &cli.Command{
if err != nil {
return nil
}
defer taskEngine.GracefullyTerminate(time.Hour)
defer taskEngine.GracefullyTerminate()

err = rpc.ListenAndServe(ctx, dependencies, shutdownChan) // Monitor for shutdown.
if err != nil {
Expand Down
Loading

0 comments on commit c01ced5

Please sign in to comment.