github.com/lzy4123/fabric@v2.1.1+incompatible/internal/pkg/peer/orderers/connection_internal_test.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package orderers 8 9 func (cs *ConnectionSource) Endpoints() []*Endpoint { 10 cs.mutex.RLock() 11 defer cs.mutex.RUnlock() 12 return cs.allEndpoints 13 }