mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 07:03:56 +02:00
refactor: improve punctuation readability
This commit is contained in:
parent
6a9e035d19
commit
2ca0b47169
4 changed files with 10 additions and 10 deletions
|
@ -119,7 +119,7 @@ impl<C: JsonRpcClient> BatchVerifier<C> {
|
||||||
);
|
);
|
||||||
verified_proofs_count += 1;
|
verified_proofs_count += 1;
|
||||||
} else {
|
} else {
|
||||||
tracing::warn!(batch_no, proof.proved_at, tee_type, "Verification failed!",);
|
tracing::warn!(batch_no, proof.proved_at, tee_type, "Verification failed!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -312,13 +312,13 @@ fn init_telemetry(
|
||||||
if config.logging.console {
|
if config.logging.console {
|
||||||
// Optionally configure JSON logging
|
// Optionally configure JSON logging
|
||||||
if config.logging.json {
|
if config.logging.json {
|
||||||
subscriber.with(fmt_layer.json()).init()
|
subscriber.with(fmt_layer.json()).init();
|
||||||
} else {
|
} else {
|
||||||
subscriber.with(fmt_layer.pretty()).init()
|
subscriber.with(fmt_layer.pretty()).init();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
subscriber.init()
|
subscriber.init();
|
||||||
};
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,9 +31,9 @@ use std::{
|
||||||
use tracing::trace;
|
use tracing::trace;
|
||||||
|
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
pub const TEE_TYPE_SGX: u32 = 0x00000000;
|
pub const TEE_TYPE_SGX: u32 = 0x0000_0000;
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
pub const TEE_TYPE_TDX: u32 = 0x00000081;
|
pub const TEE_TYPE_TDX: u32 = 0x0000_0081;
|
||||||
|
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
pub const BODY_SGX_ENCLAVE_REPORT_TYPE: u16 = 1;
|
pub const BODY_SGX_ENCLAVE_REPORT_TYPE: u16 = 1;
|
||||||
|
|
|
@ -50,8 +50,8 @@ pub struct Author {
|
||||||
unsafe impl Zeroable for Author {}
|
unsafe impl Zeroable for Author {}
|
||||||
|
|
||||||
impl Author {
|
impl Author {
|
||||||
const HEADER1: [u8; 16] = 0x06000000E10000000000010000000000u128.to_be_bytes();
|
const HEADER1: [u8; 16] = 0x0600_0000_E100_0000_0000_0100_0000_0000u128.to_be_bytes();
|
||||||
const HEADER2: [u8; 16] = 0x01010000600000006000000001000000u128.to_be_bytes();
|
const HEADER2: [u8; 16] = 0x0101_0000_6000_0000_6000_0000_0100_0000u128.to_be_bytes();
|
||||||
|
|
||||||
#[allow(clippy::unreadable_literal)]
|
#[allow(clippy::unreadable_literal)]
|
||||||
/// Creates a new Author from a date and software defined value.
|
/// Creates a new Author from a date and software defined value.
|
||||||
|
@ -245,7 +245,7 @@ impl Digest for S256Digest {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn update(&mut self, bytes: &[u8]) {
|
fn update(&mut self, bytes: &[u8]) {
|
||||||
self.0.update(bytes)
|
self.0.update(bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue