Skip to content

Commit

Permalink
rename vars
Browse files Browse the repository at this point in the history
  • Loading branch information
badgersrus committed May 9, 2024
1 parent df445f1 commit 804f114
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tools/tenscan/backend/webserver/webserver_routes_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ func (w *WebServer) getPublicTransactions(c *gin.Context) {
return
}

parseUint, err := strconv.ParseUint(sizeStr, 10, 64)
size, err := strconv.ParseUint(sizeStr, 10, 64)
if err != nil {
errorHandler(c, fmt.Errorf("unable to parse getPublicTransactions size units %w", err), w.logger)
return
}

publicTxs, err := w.backend.GetPublicTransactions(offset, parseUint)
publicTxs, err := w.backend.GetPublicTransactions(offset, size)
if err != nil {
errorHandler(c, fmt.Errorf("unable to execute getPublicTransactions request %w", err), w.logger)
return
Expand Down Expand Up @@ -202,13 +202,13 @@ func (w *WebServer) getBatchListingDeprecated(c *gin.Context) {
return
}

parseUint, err := strconv.ParseUint(sizeStr, 10, 64)
size, err := strconv.ParseUint(sizeStr, 10, 64)
if err != nil {
errorHandler(c, fmt.Errorf("unable to parse getBatchListingDeprecated size units %w", err), w.logger)
return
}

batchesListing, err := w.backend.GetBatchesListingDeprecated(offset, parseUint)
batchesListing, err := w.backend.GetBatchesListingDeprecated(offset, size)
if err != nil {
errorHandler(c, fmt.Errorf("unable to execute getBatchListingDeprecated request %w", err), w.logger)
return
Expand All @@ -227,13 +227,13 @@ func (w *WebServer) getRollupListing(c *gin.Context) {
return
}

parseUint, err := strconv.ParseUint(sizeStr, 10, 64)
size, err := strconv.ParseUint(sizeStr, 10, 64)
if err != nil {
errorHandler(c, fmt.Errorf("unable to parse getRollupListing size units %w", err), w.logger)
return
}

rollupListing, err := w.backend.GetRollupListing(offset, parseUint)
rollupListing, err := w.backend.GetRollupListing(offset, size)
if err != nil {
errorHandler(c, fmt.Errorf("unable to execute getRollupListing request %w", err), w.logger)
return
Expand All @@ -252,13 +252,13 @@ func (w *WebServer) getBlockListing(c *gin.Context) {
return
}

parseUint, err := strconv.ParseUint(sizeStr, 10, 64)
size, err := strconv.ParseUint(sizeStr, 10, 64)
if err != nil {
errorHandler(c, fmt.Errorf("unable to parse getBlockListing size units %w", err), w.logger)
return
}

batchesListing, err := w.backend.GetBlockListing(offset, parseUint)
batchesListing, err := w.backend.GetBlockListing(offset, size)
if err != nil {
errorHandler(c, fmt.Errorf("unable to execute getBlockListing request %w", err), w.logger)
return
Expand Down

0 comments on commit 804f114

Please sign in to comment.