Skip to content

Commit

Permalink
fix(influxdb): support set timeout (#19593)
Browse files Browse the repository at this point in the history
Co-authored-by: 马鸿飞 <mahongfei@yunion.cn>
  • Loading branch information
gouqi11 and 马鸿飞 authored Mar 3, 2024
1 parent b491e0e commit 43e5df8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/util/influxdb/influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"path"
"strconv"
"strings"
"time"

"yunion.io/x/jsonutils"
"yunion.io/x/log"
Expand Down Expand Up @@ -299,3 +300,7 @@ func (db *SInfluxdb) SetRetentionPolicy(rp SRetentionPolicy) error {
return db.CreateRetentionPolicy(rp)
}
}

func (db *SInfluxdb) SetTimeout(timeout time.Duration) {
db.client.Timeout = timeout
}

0 comments on commit 43e5df8

Please sign in to comment.