Made discovery enum use int and removed the UNKNOWN zero value from the enum

This commit is contained in:
Adin Schmahmann 2019-07-22 10:02:58 -04:00
parent ae667299a8
commit e4a65bcf1c

View File

@ -5,11 +5,10 @@ import (
"github.com/libp2p/go-libp2p-core/peer"
)
type EventType int8
type EventType int
const (
UNKNOWN EventType = iota
PEER_JOIN
PEER_JOIN EventType = iota
PEER_LEAVE
)