Skip to content
Permalink
Browse files

Create a span for verifying (#1277)

  • Loading branch information...
gdbelvin committed May 13, 2019
1 parent 837e994 commit 7d962e12a16e3c3830353a4e4eb356c74324bfa4
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/keyserver/keyserver.go
@@ -579,6 +579,7 @@ func (s *Server) BatchQueueUserUpdate(ctx context.Context, in *pb.BatchQueueUser
// - Index to Key equality in SignedKV.
// - Correct profile commitment.
// - Correct key formats.
_, tdone := monitoring.StartSpan(ctx, "BatchQueueUserUpdate.verify")
for _, u := range in.Updates {
if err := s.verifyMutation(u.Mutation); err != nil {
glog.Warningf("Invalid UpdateEntryRequest: %v", err)
@@ -589,6 +590,7 @@ func (s *Server) BatchQueueUserUpdate(ctx context.Context, in *pb.BatchQueueUser
return nil, status.Errorf(codes.InvalidArgument, "Invalid request")
}
}
tdone()

// Save mutation to the database.
wm, err := s.logs.Send(ctx, directory.DirectoryID, in.Updates...)

0 comments on commit 7d962e1

Please sign in to comment.
You can’t perform that action at this time.