Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/graphql/resolvers/sfc_epochs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type EpochList struct {
types.EpochList
}

// EpochListEdge represents a single edge of an epoch list list structure.
// EpochListEdge represents a single edge of an epoch list structure.
type EpochListEdge struct {
Epoch *Epoch
}
Expand Down
2 changes: 1 addition & 1 deletion internal/graphql/resolvers/trx_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (rs *rootResolver) TrxVolume(args struct {
return list, nil
}

// TrxGasSpeed resolves the gas consumption speed speed
// TrxGasSpeed resolves the gas consumption speed
// of the network in transactions processed per second.
func (rs *rootResolver) TrxGasSpeed(args struct {
Range int32
Expand Down
5 changes: 1 addition & 4 deletions internal/repository/cache/ring/ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ func (r *Ring) List(length int) []unsafe.Pointer {
defer r.RUnlock()

// make sure to limit the pulled range to the ring depth
tl := length
if tl > r.depth {
tl = r.depth
}
tl := min(length, r.depth)

l := make([]unsafe.Pointer, tl)

Expand Down