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

Support priority argument #74

Closed
wants to merge 2 commits into from
Closed

Support priority argument #74

wants to merge 2 commits into from

Conversation

DoubleDi
Copy link
Collaborator

@DoubleDi DoubleDi commented May 8, 2019

Clickhouse can put priorities to queues (https://github.com/yandex/ClickHouse/blob/master/dbms/src/Interpreters/QueryPriorities.h). This PR adds priority support to dsn

@@ -157,6 +161,9 @@ func parseDSNParams(cfg *Config, params map[string][]string) (err error) {
cfg.Params[k] = v[0]
case "tls_config":
cfg.TLSConfig = v[0]
case "priority":
cfg.Priority, err = strconv.Atoi(v[0])
cfg.Params[k] = v[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does it need in params?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, you are right we can put a the priority arg in Params.
This PR is useless.
Thank you

@DoubleDi DoubleDi closed this Jun 20, 2019
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.

None yet

2 participants