cli: use withTimeout, not withDeadline (#2865)

#### Type of change

- [x] 🧹 Tech Debt/Cleanup
This commit is contained in:
Keepers 2023-03-21 08:51:57 -06:00 committed by GitHub
parent 7fbe6d1099
commit c7d282ce0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)