-
Lars Gierth authored
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.
f0453a24