mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-05 06:13:10 +00:00
Made discovery enum use int and removed the UNKNOWN zero value from the enum
This commit is contained in:
parent
ae667299a8
commit
e4a65bcf1c
@ -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
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user