github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/topology/empty.go (about) 1 package topology 2 3 import ( 4 "github.com/onflow/flow-go/model/flow" 5 "github.com/onflow/flow-go/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 }