mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-28 00:27:23 -04:00
Use extracted NETWORK_INTERFACE_KEY consistently
This commit is contained in:
parent
7e3c53ac24
commit
9e00c3d85e
2 changed files with 6 additions and 3 deletions
|
@ -37,7 +37,7 @@ public abstract class MessageModule extends BitsquareModule {
|
||||||
bind(MessageFacade.class).to(messageFacade()).asEagerSingleton();
|
bind(MessageFacade.class).to(messageFacade()).asEagerSingleton();
|
||||||
|
|
||||||
bind(String.class)
|
bind(String.class)
|
||||||
.annotatedWith(Names.named("networkInterface"))
|
.annotatedWith(Names.named(NETWORK_INTERFACE_KEY))
|
||||||
.toInstance(properties.getProperty(NETWORK_INTERFACE_KEY, ""));
|
.toInstance(properties.getProperty(NETWORK_INTERFACE_KEY, ""));
|
||||||
|
|
||||||
doConfigure();
|
doConfigure();
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package io.bitsquare.msg.tomp2p;
|
package io.bitsquare.msg.tomp2p;
|
||||||
|
|
||||||
|
import io.bitsquare.msg.MessageModule;
|
||||||
import io.bitsquare.network.BootstrapState;
|
import io.bitsquare.network.BootstrapState;
|
||||||
import io.bitsquare.network.Node;
|
import io.bitsquare.network.Node;
|
||||||
import io.bitsquare.persistence.Persistence;
|
import io.bitsquare.persistence.Persistence;
|
||||||
|
@ -68,6 +69,7 @@ import org.jetbrains.annotations.NotNull;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import static io.bitsquare.msg.MessageModule.NETWORK_INTERFACE_KEY;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -95,8 +97,9 @@ class BootstrappedPeerFactory {
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public BootstrappedPeerFactory(Persistence persistence, @Named(BOOTSTRAP_NODE_KEY) Node bootstrapNode,
|
public BootstrappedPeerFactory(Persistence persistence,
|
||||||
@Named("networkInterface") String networkInterface) {
|
@Named(BOOTSTRAP_NODE_KEY) Node bootstrapNode,
|
||||||
|
@Named(NETWORK_INTERFACE_KEY) String networkInterface) {
|
||||||
this.persistence = persistence;
|
this.persistence = persistence;
|
||||||
this.bootstrapNode = bootstrapNode;
|
this.bootstrapNode = bootstrapNode;
|
||||||
this.networkInterface = networkInterface;
|
this.networkInterface = networkInterface;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue