diff --git a/net/peer.go b/net/peer.go index 59543c5f4d..ade59e1c7d 100644 --- a/net/peer.go +++ b/net/peer.go @@ -867,7 +867,7 @@ func (p *Peer) GetAllP2PCollections() ([]client.P2PCollection, error) { return nil, err } - var p2pCols []client.P2PCollection + p2pCols := []client.P2PCollection{} for _, colID := range collections { col, err := store.GetCollectionBySchemaID(p.ctx, colID) if err != nil {