refactor: update Initialize signature

This commit is contained in:
Derrick Hammer 2024-01-12 08:22:13 -05:00
parent b5c540ab8e
commit 0bd089e046
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 8 additions and 2 deletions

View File

@ -18,13 +18,19 @@ var (
type S5Protocol struct {
node s5interfaces.Node
portal interfaces.Portal
}
func NewS5Protocol() *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{
P2P: s5config.P2PConfig{
Network: "",