Browse Source

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

Felix Lange 6 năm trước cách đây
mục cha
commit
7f70a70106
1 tập tin đã thay đổi với 3 bổ sung4 xóa
  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.