mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
Remove Top Jaeger Span Offenders (#7655)
This commit is contained in:
parent
0cbd8bc03d
commit
ec8eab21ae
@ -118,8 +118,6 @@ func (s *Store) BlockRoots(ctx context.Context, f *filters.QueryFilter) ([][32]b
|
||||
|
||||
// HasBlock checks if a block by root exists in the db.
|
||||
func (s *Store) HasBlock(ctx context.Context, blockRoot [32]byte) bool {
|
||||
ctx, span := trace.StartSpan(ctx, "BeaconDB.HasBlock")
|
||||
defer span.End()
|
||||
if v, ok := s.blockCache.Get(string(blockRoot[:])); v != nil && ok {
|
||||
return true
|
||||
}
|
||||
|
@ -56,8 +56,6 @@ func (s *Store) StateSummary(ctx context.Context, blockRoot [32]byte) (*pb.State
|
||||
|
||||
// HasStateSummary returns true if a state summary exists in DB.
|
||||
func (s *Store) HasStateSummary(ctx context.Context, blockRoot [32]byte) bool {
|
||||
ctx, span := trace.StartSpan(ctx, "BeaconDB.HasStateSummary")
|
||||
defer span.End()
|
||||
enc, err := s.stateSummaryBytes(ctx, blockRoot)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@ -66,9 +64,6 @@ func (s *Store) HasStateSummary(ctx context.Context, blockRoot [32]byte) bool {
|
||||
}
|
||||
|
||||
func (s *Store) stateSummaryBytes(ctx context.Context, blockRoot [32]byte) ([]byte, error) {
|
||||
ctx, span := trace.StartSpan(ctx, "BeaconDB.stateSummaryBytes")
|
||||
defer span.End()
|
||||
|
||||
var enc []byte
|
||||
err := s.db.View(func(tx *bolt.Tx) error {
|
||||
bucket := tx.Bucket(stateSummaryBucket)
|
||||
|
Loading…
Reference in New Issue
Block a user