-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basichost: refactor BasicHost construction
There were previously 4 different ways of passing various options into BasicHost construction. 1. Function parameters to New 2. Option parameters to New 3. Global variables, e.g. NegotiateTimeout 4. Options struct, in the calling code in go-ipfs This changeset deprecated all of these, and introduces the HostOpts struct to replace them. It also introduces a new constructor called NewHost, which accepts a *HostOpts. The old New constructor continues to work the same way, but is from now on deprecated too.
- Loading branch information
Lars Gierth
committed
May 31, 2017
1 parent
78dabda
commit f0453a2
Showing
4 changed files
with
113 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters