testPool: implement pool.Service

This commit is contained in:
Sergey Cherepanov 2023-02-02 13:12:52 +03:00
parent f4c6679b0e
commit 3fcbe3aba9
No known key found for this signature in database
GPG Key ID: 87F8EDE8FBDF637C

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
}