func (t *Torrent) AddClientPeer(cl *Client) {
	t.AddPeers(func() (ps []Peer) {
		for _, la := range cl.ListenAddrs() {
			ps = append(ps, Peer{
				Addr:    la,
				Trusted: true,
			})
		}
		return
	}())
}
// Adds a trusted, pending peer for each of the given Client's addresses. Typically used in tests to
// quickly make one Client visible to the Torrent of another Client.
Adds a trusted, pending peer for each of the given Client's addresses. Typically used in tests to
quickly make one Client visible to the Torrent of another Client.
// Adds a trusted pending peer for each of the given Client ' s addresses . Typically used in tests to // quickly make one Client visible to the Torrent of another Client .
func (t *Torrent) AddClientPeer(cl *Client) {
	t.AddPeers(func() (ps []Peer) {
		for _, la := range cl.ListenAddrs() {
			ps = append(ps, Peer{
				Addr:    la,
				Trusted: true,
			})
		}
		return
	}())
}
func ( t * Torrent ) AddClientPeer ( cl * Client ) { t . AddPeers ( func ( ) ( ps [ ] Peer ) { for _ , la := range cl . ListenAddrs ( ) { ps = append ( ps , Peer { Addr : la , Trusted : true , } ) } return } ( ) ) }
Adds a trusted, pending peer for each of the given Client's addresses.
Adds a trusted pending peer for each of the given Client ' s addresses .