From 99167b4cec0f5105c2f15851e54bb21812c77b7d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 7 Jan 2024 04:15:28 -0500 Subject: [PATCH] fix: add missing services impl --- node/services.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 node/services.go diff --git a/node/services.go b/node/services.go new file mode 100644 index 0000000..207f5cc --- /dev/null +++ b/node/services.go @@ -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 +}