remove unnecessary lock (#3399)

This commit is contained in:
Preston Van Loon
2019-09-03 12:53:18 -07:00
committed by terence tsao
parent 399f704bf5
commit 5ec629af71

View File

@@ -53,9 +53,6 @@ import (
// if i not in store.latest_messages or target.epoch > store.latest_messages[i].epoch:
// store.latest_messages[i] = LatestMessage(epoch=target.epoch, root=attestation.data.beacon_block_root)
func (s *Store) OnAttestation(ctx context.Context, a *ethpb.Attestation) (uint64, error) {
s.lock.Lock()
defer s.lock.Unlock()
ctx, span := trace.StartSpan(ctx, "forkchoice.onAttestation")
defer span.End()