From e4a65bcf1cb9bf4d22849c25f08824c92a1d3c1b Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Mon, 22 Jul 2019 10:02:58 -0400 Subject: [PATCH] Made discovery enum use int and removed the UNKNOWN zero value from the enum --- subscription.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subscription.go b/subscription.go index 5db1cb8..7c4bdbe 100644 --- a/subscription.go +++ b/subscription.go @@ -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 )