// ProcessOperation validates operation and adds it to the batch.
ProcessOperation validates operation and adds it to the batch.
// ProcessOperation validates operation and adds it to the batch .
func (r *UpdateHandler) ProcessOperation(operationBuffer []byte, protocolVersion uint64) (*document.ResolutionResult, error) { 
	startTime := time.Now()
	defer func() {
		r.metrics.DocumentCreateUpdateTime(time.Since(startTime))
	}()
	doc, err := r.coreProcessor.ProcessOperation(operationBuffer, protocolVersion)
	if err != nil {
		return nil, err
	}
	return doc, nil
}
func ( r * UpdateHandler ) ProcessOperation ( operationBuffer [ ] byte , protocolVersion uint64 ) ( * document . ResolutionResult , error ) { startTime := time . Now ( ) defer func ( ) { r . metrics . DocumentCreateUpdateTime ( time . Since ( startTime ) ) } ( ) doc , err := r . coreProcessor . ProcessOperation ( operationBuffer , protocolVersion ) if err != nil { return nil , err } return doc , nil }
ProcessOperation validates operation and adds it to the batch.
ProcessOperation validates operation and adds it to the batch .
//nolint:lll