From a12c7db9051fc463f08592f6c46e63631b51e2c0 Mon Sep 17 00:00:00 2001
From: Yash Atreya <44857776+yash-atreya@users.noreply.github.com>
Date: Thu, 3 Oct 2024 12:37:38 +0530
Subject: [PATCH] nit

---
 examples/advanced/examples/reth_db_layer.rs    |  4 ++--
 examples/advanced/examples/reth_db_provider.rs | 11 +++++++----
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/examples/advanced/examples/reth_db_layer.rs b/examples/advanced/examples/reth_db_layer.rs
index c8aa8de2..74fa1fc8 100644
--- a/examples/advanced/examples/reth_db_layer.rs
+++ b/examples/advanced/examples/reth_db_layer.rs
@@ -5,12 +5,12 @@ use std::path::PathBuf;
 
 /// We use the tower-like layering functionality that has been baked into the alloy-provider to
 /// intercept the requests and redirect to the `RethDbProvider`.
-pub(crate) struct RethDBLayer {
+pub(crate) struct RethDbLayer {
     db_path: PathBuf,
 }
 
 /// Initialize the `RethDBLayer` with the path to the reth datadir.
-impl RethDBLayer {
+impl RethDbLayer {
     pub(crate) const fn new(db_path: PathBuf) -> Self {
         Self { db_path }
     }
diff --git a/examples/advanced/examples/reth_db_provider.rs b/examples/advanced/examples/reth_db_provider.rs
index 80889382..6a9a9dbd 100644
--- a/examples/advanced/examples/reth_db_provider.rs
+++ b/examples/advanced/examples/reth_db_provider.rs
@@ -33,12 +33,15 @@ use reth_provider::{
     ProviderFactory, StateProvider, TryIntoHistoricalStateProvider,
 };
 mod reth_db_layer;
-use reth_db_layer::RethDBLayer;
+use reth_db_layer::RethDbLayer;
 
 #[tokio::main]
 async fn main() -> Result<()> {
     run_with_tempdir("provider-call-reth-db", |data_dir| async move {
-        // Initialize reth node with a specific data directory
+        // Initializing reth with a tmp data directory.
+        // We use a tmp directory for the purposes of this example.
+        // This would actually use an existing reth datadir specified by `--datadir` when starting
+        // your reth node.
         let reth = Reth::new()
             .dev()
             .disable_discovery()
@@ -53,7 +56,7 @@ async fn main() -> Result<()> {
         // Any RPC method that is not implemented in the RethDbProvider gracefully falls back to the
         // RPC provider specified in the `on_http` method.
         let provider =
-            ProviderBuilder::new().layer(RethDBLayer::new(db_path)).on_http(reth.endpoint_url());
+            ProviderBuilder::new().layer(RethDbLayer::new(db_path)).on_http(reth.endpoint_url());
 
         // Initialize the RPC provider to compare the time taken to fetch the results.
         let rpc_provider = ProviderBuilder::new().on_http(reth.endpoint_url());
@@ -92,7 +95,7 @@ async fn main() -> Result<()> {
 }
 
 /// Implement the `ProviderLayer` trait for the `RethDBLayer` struct.
-impl<P, T> ProviderLayer<P, T> for RethDBLayer
+impl<P, T> ProviderLayer<P, T> for RethDbLayer
 where
     P: Provider<T>,
     T: Transport + Clone,