testPool: implement pool.Service

This commit is contained in:
Sergey Cherepanov 2023-02-02 13:12:52 +03:00 committed by Mikhail Iudin
parent f6e2cc3890
commit c51e3e2e05
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -66,6 +66,10 @@ func (t *TestPool) DialOneOf(ctx context.Context, peerIds []string) (peer.Peer,
return &testPeer{id: peerIds[rand.Intn(len(peerIds))], Conn: t.ts.Dial(ctx)}, nil
}
func (t *TestPool) NewPool(name string) pool.Pool {
return t
}
func (t *TestPool) Init(a *app.App) (err error) {
return nil
}