From b46260a78922f96714330d4ecd1ed8c560371e88 Mon Sep 17 00:00:00 2001 From: Rafael Matias Date: Mon, 23 Sep 2024 10:14:11 +0200 Subject: [PATCH] ci fixup --- handlers/clients_cl.go | 10 ++++------ utils/peerdas.go | 6 +----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/handlers/clients_cl.go b/handlers/clients_cl.go index bad8056..9d6c8fd 100644 --- a/handlers/clients_cl.go +++ b/handlers/clients_cl.go @@ -352,13 +352,11 @@ func buildCLClientsPageData() (*models.ClientsCLPageData, time.Duration) { } // Transform the custody columns to a map for easier access - if resColumns != nil { - for _, idx := range resColumns { - if _, ok := columnDistribution[idx]; !ok { - columnDistribution[idx] = make(map[string]bool) - } - columnDistribution[idx][v.PeerID] = true + for _, idx := range resColumns { + if _, ok := columnDistribution[idx]; !ok { + columnDistribution[idx] = make(map[string]bool) } + columnDistribution[idx][v.PeerID] = true } peerDASInfo := models.ClientCLPageDataPeerDAS{ diff --git a/utils/peerdas.go b/utils/peerdas.go index 92689b2..9414c46 100644 --- a/utils/peerdas.go +++ b/utils/peerdas.go @@ -16,11 +16,7 @@ import ( var ( // Custom errors - errCustodySubnetCountTooLarge = errors.New("custody subnet count larger than data column sidecar subnet count") - errIndexTooLarge = errors.New("column index is larger than the specified columns count") - errMismatchLength = errors.New("mismatch in the length of the commitments and proofs") - errRecordNil = errors.New("record is nil") - errCannotLoadCustodySubnetCount = errors.New("cannot load the custody subnet count from peer") + errCustodySubnetCountTooLarge = errors.New("custody subnet count larger than data column sidecar subnet count") // maxUint256 is the maximum value of a uint256. maxUint256 = &uint256.Int{math.MaxUint64, math.MaxUint64, math.MaxUint64, math.MaxUint64}