fix: add missing services impl

This commit is contained in:
Derrick Hammer 2024-01-07 04:15:28 -05:00
parent ea872fedc4
commit 99167b4cec
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 19 additions and 0 deletions

19
node/services.go Normal file
View File

@ -0,0 +1,19 @@
package node
import "git.lumeweb.com/LumeWeb/libs5-go/interfaces"
var (
_ interfaces.Services = (*ServicesImpl)(nil)
)
type ServicesImpl struct {
p2p interfaces.P2PService
}
func NewServices(p2p interfaces.P2PService) *ServicesImpl {
return &ServicesImpl{p2p: p2p}
}
func (s *ServicesImpl) P2P() interfaces.P2PService {
return s.p2p
}