github.com/MetalBlockchain/metalgo@v1.11.9/snow/consensus/snowman/bootstrapper/noop.go (about) 1 // Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved. 2 // See the file LICENSE for licensing terms. 3 4 package bootstrapper 5 6 import ( 7 "context" 8 9 "github.com/MetalBlockchain/metalgo/ids" 10 "github.com/MetalBlockchain/metalgo/utils/set" 11 ) 12 13 var Noop Poll = noop{} 14 15 type noop struct{} 16 17 func (noop) GetPeers(context.Context) set.Set[ids.NodeID] { 18 return nil 19 } 20 21 func (noop) RecordOpinion(context.Context, ids.NodeID, set.Set[ids.ID]) error { 22 return nil 23 } 24 25 func (noop) Result(context.Context) ([]ids.ID, bool) { 26 return nil, false 27 }