Parcourir la source

event: remove unused field 'closed' (#20324)

Felix Lange il y a 6 ans
Parent
commit
7f70a70106
1 fichiers modifiés avec 3 ajouts et 4 suppressions
  1. 3 4
      event/feed.go

+ 3 - 4
event/feed.go

@@ -39,10 +39,9 @@ type Feed struct {
 	sendCases caseList         // the active set of select cases used by Send
 
 	// The inbox holds newly subscribed channels until they are added to sendCases.
-	mu     sync.Mutex
-	inbox  caseList
-	etype  reflect.Type
-	closed bool
+	mu    sync.Mutex
+	inbox caseList
+	etype reflect.Type
 }
 
 // This is the index of the first actual subscription channel in sendCases.