1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 05:52:20 +08:00

style(testutil) rename testutil.Peer -> testutil.Identity

cc @jbenet
This commit is contained in:
Brian Tiger Chow
2014-12-24 09:53:18 -05:00
parent 2b2ff548e6
commit 0172e4f2bb
13 changed files with 36 additions and 36 deletions

View File

@ -41,7 +41,7 @@ func (g *SessionGenerator) Close() error {
func (g *SessionGenerator) Next() Instance {
g.seq++
p, err := testutil.RandPeer()
p, err := testutil.RandIdentity()
if err != nil {
panic("FIXME") // TODO change signature
}
@ -78,7 +78,7 @@ func (i *Instance) SetBlockstoreLatency(t time.Duration) time.Duration {
// NB: It's easy make mistakes by providing the same peer ID to two different
// sessions. To safeguard, use the SessionGenerator to generate sessions. It's
// just a much better idea.
func session(ctx context.Context, net tn.Network, p testutil.Peer) Instance {
func session(ctx context.Context, net tn.Network, p testutil.Identity) Instance {
bsdelay := delay.Fixed(0)
const kWriteCacheElems = 100