MCPcopy Create free account
hub / github.com/DOSNetwork/core / getIndex

Function getIndex

onchain/eth_subscribe.go:142–151  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

140}
141
142func getIndex(ctx context.Context) (idx int) {
143 if v := ctx.Value("index"); v != nil {
144 if i, ok := v.(int); ok {
145 idx = i
146 } else {
147 idx = -1
148 }
149 }
150 return
151}
152func replyError(ctx context.Context, errc chan error, err error) {
153 select {
154 case <-ctx.Done():

Callers 15

eth_subscribe.goFile · 0.85
GroupToPickMethod · 0.85
GroupSizeMethod · 0.85
GetWorkingGroupSizeMethod · 0.85
LastUpdatedBlockMethod · 0.85
NumPendingGroupsMethod · 0.85
NumPendingNodesMethod · 0.85
BootstrapEndBlkMethod · 0.85

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected