refactor: update Initialize signature
This commit is contained in:
parent
b5c540ab8e
commit
0bd089e046
|
@ -18,13 +18,19 @@ var (
|
||||||
|
|
||||||
type S5Protocol struct {
|
type S5Protocol struct {
|
||||||
node s5interfaces.Node
|
node s5interfaces.Node
|
||||||
|
portal interfaces.Portal
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewS5Protocol() *S5Protocol {
|
func NewS5Protocol() *S5Protocol {
|
||||||
return &S5Protocol{}
|
return &S5Protocol{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *S5Protocol) Initialize(config *viper.Viper, logger *zap.Logger) error {
|
func (s *S5Protocol) Initialize(portal interfaces.Portal) error {
|
||||||
|
s.portal = portal
|
||||||
|
|
||||||
|
logger := portal.Logger()
|
||||||
|
config := portal.Config()
|
||||||
|
|
||||||
cfg := &s5config.NodeConfig{
|
cfg := &s5config.NodeConfig{
|
||||||
P2P: s5config.P2PConfig{
|
P2P: s5config.P2PConfig{
|
||||||
Network: "",
|
Network: "",
|
||||||
|
|
Loading…
Reference in New Issue