fix: timeout 5

This commit is contained in:
swift-mx 2022-06-02 16:54:58 +08:00
parent d04594a375
commit 63a2d9f1fe

View File

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