Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(influxdb): support set timeout #19593

Merged
merged 1 commit into from
Mar 3, 2024

Conversation

gouqi11
Copy link
Contributor

@gouqi11 gouqi11 commented Mar 1, 2024

What this PR does / why we need it:

Does this PR need to be backport to the previous release branch?:

If yes, write the release branches name in the below format and submit the related cherry-pick PR:

  • release/3.9

@@ -299,3 +300,7 @@ func (db *SInfluxdb) SetRetentionPolicy(rp SRetentionPolicy) error {
return db.CreateRetentionPolicy(rp)
}
}

func (db *SInfluxdb) SetTimeout(timeout time.Duration) {
db.client = httputils.GetTimeoutClient(timeout)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接设置 db.client.Timeout = timeout 可以吗?这样不用构造新的对象

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants