Update cmd/lotus-shed/hello.go

Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
This commit is contained in:
swift-mx 2022-06-02 17:09:35 +08:00 committed by GitHub
parent 63a2d9f1fe
commit 5a961c90f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ var helloCmd = &cli.Command{
if err != nil {
return err
}
ctx, done := context.WithTimeout(context.Background(), 5*time.Second)
ctx, done := context.WithTimeout(ctx, 5*time.Second)
defer done()
select {
case <-resultCh: