fix: use ServicesSetter

This commit is contained in:
Derrick Hammer 2024-01-30 16:07:22 -05:00
parent fd55c0984f
commit 7cc5621a10
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ func (p *P2PServiceDefault) OnNewPeerListen(peer net.Peer, verifyId bool) {
}),
}
if mediator, ok := data.Mediator.(service.Service); ok {
if mediator, ok := data.Mediator.(service.ServicesSetter); ok {
mediator.SetServices(p.Services())
} else {
p.Logger().Fatal("failed to cast mediator to service.Service")