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 configuration issues, update iprose-go #155

Merged
merged 9 commits into from
May 17, 2024

Conversation

RandoMan70
Copy link
Contributor

No description provided.

@@ -26,12 +38,33 @@ type Instance struct {
config *Config
}

func fillDefaults(config *Config) *Config {
filled := *config
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the point to make a copy?

@@ -13,6 +13,8 @@ type Instance struct {
stopped bool
}

var DefaultConfig = &Config{}
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably better declare it as value with predefined (default values)

@RandoMan70 RandoMan70 merged commit 03f475b into main May 17, 2024
1 check passed
@RandoMan70 RandoMan70 deleted the feature/adopt-server-for-multiple-peers-per-addr branch May 17, 2024 08:24
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