Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Fix naming and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
carllin committed Nov 18, 2018
1 parent d67da2a commit 3830112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/db_ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl LedgerColumnFamily for MetaCf {
pub struct DataCf {}

impl DataCf {
pub fn get_on_slot_index(
pub fn get_by_slot_index(
&self,
db: &DB,
slot_height: u64,
Expand All @@ -131,7 +131,7 @@ impl DataCf {
self.get(db, &key)
}

pub fn put_on_slot_index(
pub fn put_by_slot_index(
&self,
db: &DB,
slot_height: u64,
Expand Down Expand Up @@ -173,7 +173,7 @@ impl LedgerColumnFamilyRaw for DataCf {
pub struct ErasureCf {}

impl ErasureCf {
pub fn get_on_slot_index(
pub fn get_by_slot_index(
&self,
db: &DB,
slot_height: u64,
Expand All @@ -183,7 +183,7 @@ impl ErasureCf {
self.get(db, &key)
}

pub fn put_on_slot_index(
pub fn put_by_slot_index(
&self,
db: &DB,
slot_height: u64,
Expand Down
3 changes: 1 addition & 2 deletions src/db_window.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! The `window` module defines data structure for storing the tail of the ledger.
//!
//! Set of functions for emulating windowing functions from a database ledger implementation
use cluster_info::ClusterInfo;
use counter::Counter;
use db_ledger::*;
Expand Down

0 comments on commit 3830112

Please sign in to comment.