fix: db and logger need to be in S5ProtocolResult

This commit is contained in:
Derrick Hammer 2024-01-30 14:20:33 -05:00
parent a4737ab4b8
commit 9224dcd119
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,8 @@ type S5ProtocolResult struct {
Protocol registry.Protocol `group:"protocol"`
S5Protocol *S5Protocol
S5NodeConfig *s5config.NodeConfig
Db *bolt.DB
Logger *zap.Logger
}
var ProtocolModule = fx.Module("s5_api",
@ -74,6 +76,8 @@ func NewS5Protocol(
Protocol: proto,
S5Protocol: proto,
S5NodeConfig: cfg,
Db: cfg.DB,
Logger: params.Logger,
}, nil
}