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

Readme example fix #139

Merged
merged 2 commits into from
Jun 21, 2022
Merged

Readme example fix #139

merged 2 commits into from
Jun 21, 2022

Conversation

kaworu
Copy link
Contributor

@kaworu kaworu commented Jun 21, 2022

Couple of fix for the README example, see commits.

kaworu added 2 commits June 21, 2022 09:18
Before this patch, when trying to run the README example we get the
following error:

    % go run ./main.go
    # command-line-arguments
    ./main.go:13:43: too many arguments in call to ch.Dial
        have (context.Context, string, ch.Options)
        want (context.Context, ch.Options)

See also 9cc1b6e ("refactor: make address optional")
which removed the address field of Dial.

Signed-off-by: Alexandre Perrin <[email protected]>
Move Result before OnResult since the latter is optional and called
after the former.

Signed-off-by: Alexandre Perrin <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Jun 21, 2022

CLA assistant check
All committers have signed the CLA.

@ernado ernado merged commit ebe0d6b into ClickHouse:main Jun 21, 2022
@kaworu kaworu deleted the readme-example-fix branch June 21, 2022 09:45
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