github.com/koko1123/flow-go-1@v0.29.6/network/topology/empty.go (about) 1 package topology 2 3 import ( 4 "github.com/koko1123/flow-go-1/model/flow" 5 "github.com/koko1123/flow-go-1/network" 6 ) 7 8 // EmptyTopology always returns an empty fanout list. 9 type EmptyTopology struct{} 10 11 var _ network.Topology = &EmptyTopology{} 12 13 func NewEmptyTopology() network.Topology { 14 return &EmptyTopology{} 15 } 16 17 func (e EmptyTopology) Fanout(_ flow.IdentityList) flow.IdentityList { 18 return flow.IdentityList{} 19 }