feat: use WithBlock() by default, NonBlock can be set in config or WithNonBlock() (#1198)

This commit is contained in:
Kevin Wan
2021-11-02 19:02:02 +08:00
committed by GitHub
parent b76c7ae55d
commit 1ece3a498f
4 changed files with 25 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ type (
Target string `json:",optional"`
App string `json:",optional"`
Token string `json:",optional"`
NonBlock bool `json:",optional"`
Retry bool `json:",optional"` // grpc auto retry
Timeout int64 `json:",default=2000"`
}