|
@@ -1,9 +1,9 @@
|
|
|
use std::net::SocketAddr;
|
|
use std::net::SocketAddr;
|
|
|
use std::sync::Arc;
|
|
use std::sync::Arc;
|
|
|
|
|
|
|
|
|
|
+use drk::blockchain::{rocks::columns, Rocks, RocksColumn};
|
|
|
use drk::service::{GatewayService, ProgramOptions};
|
|
use drk::service::{GatewayService, ProgramOptions};
|
|
|
use drk::Result;
|
|
use drk::Result;
|
|
|
-use drk::blockchain::{Rocks, RocksColumn, rocks::columns};
|
|
|
|
|
|
|
|
|
|
extern crate clap;
|
|
extern crate clap;
|
|
|
use async_executor::Executor;
|
|
use async_executor::Executor;
|
|
@@ -22,7 +22,7 @@ async fn start(executor: Arc<Executor<'_>>, options: ProgramOptions) -> Result<(
|
|
|
let database_path = options.database_path.as_path();
|
|
let database_path = options.database_path.as_path();
|
|
|
|
|
|
|
|
let rocks = Rocks::new(database_path)?;
|
|
let rocks = Rocks::new(database_path)?;
|
|
|
- let rocks_slabstore_column = RocksColumn::<columns::Slabs>::new(rocks);
|
|
|
|
|
|
|
+ let rocks_slabstore_column = RocksColumn::<columns::Slabs>::new(rocks);
|
|
|
|
|
|
|
|
let gateway = GatewayService::new(accept_addr, pub_addr, rocks_slabstore_column)?;
|
|
let gateway = GatewayService::new(accept_addr, pub_addr, rocks_slabstore_column)?;
|
|
|
|
|
|