1package identify
2
3import (
4	"github.com/libp2p/go-libp2p-core/network"
5)
6
7// IDPush is the protocol.ID of the Identify push protocol. It sends full identify messages containing
8// the current state of the peer.
9//
10// It is in the process of being replaced by identify delta, which sends only diffs for better
11// resource utilisation.
12const IDPush = "/ipfs/id/push/1.0.0"
13
14// pushHandler handles incoming identify push streams. The behaviour is identical to the ordinary identify protocol.
15func (ids *IDService) pushHandler(s network.Stream) {
16	ids.handleIdentifyResponse(s)
17}
18