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

if the Conn:Channel ratio is not 1:1 please help me understand API #542

Open
ORESoftware opened this issue Nov 11, 2023 · 1 comment
Open

Comments

@ORESoftware
Copy link

ChatGPT says this:

image

but the API is like this:

image

so how could I access any other channels associated with the TCP conn?

@ORESoftware
Copy link
Author

nevermind, looks like you open a channel like this:

	ch1, err := conn.Channel()
	failOnError(err, "Failed to open a channel")
	defer ch1.Close()

	ch2, err := conn.Channel()
	failOnError(err, "Failed to open a channel")
	defer ch2.Close()

my only question - is there a default channel or is the default no channel?

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

No branches or pull requests

1 participant