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

get program_name from attr first #242

Merged
merged 2 commits into from
Aug 28, 2020
Merged

Conversation

yumm007
Copy link

@yumm007 yumm007 commented Aug 8, 2020

in default, the program_name of attr from os.env::args[0], sometimes caller want to change it.

let opts = OptsBuilder::from_opts(&url);
let mut connect_attrs = HashMap::new();
connect_attrs.insert("program_name", "my_app");
let opts = opts.connect_attrs(connect_attrs);
let pool = Pool::new(opts)?;

@blackbeam blackbeam merged commit 1bd3a7a into blackbeam:master Aug 28, 2020
@blackbeam
Copy link
Owner

Published as v19.0.1

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.

2 participants