cli: use withTimeout, not withDeadline (#2865)
#### Type of change
- [x] 🧹 Tech Debt/Cleanup
This commit is contained in:
parent
7fbe6d1099
commit
c7d282ce0c
@ -147,9 +147,8 @@ func BuildCommandTree(cmd *cobra.Command) {
|
||||
|
||||
// Handle builds and executes the cli processor.
|
||||
func Handle() {
|
||||
tenDays := time.Now().Add(time.Hour * 24 * 10)
|
||||
//nolint:forbidigo
|
||||
ctx, cancel := context.WithDeadline(context.Background(), tenDays)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Hour*24*10)
|
||||
defer cancel()
|
||||
|
||||
ctx = config.Seed(ctx)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user