Update node status
This commit is contained in:
@@ -8,6 +8,7 @@ pub mod pg {
|
||||
|
||||
use err::Error;
|
||||
use netpod::log::*;
|
||||
use netpod::TableSizes;
|
||||
use netpod::{Channel, Database, NodeConfigCached};
|
||||
use netpod::{ScalarType, Shape};
|
||||
use std::sync::Arc;
|
||||
@@ -102,10 +103,6 @@ pub async fn database_size(node_config: &NodeConfigCached) -> Result<u64, Error>
|
||||
Ok(size)
|
||||
}
|
||||
|
||||
pub struct TableSizes {
|
||||
pub sizes: Vec<(String, String)>,
|
||||
}
|
||||
|
||||
pub async fn table_sizes(node_config: &NodeConfigCached) -> Result<TableSizes, Error> {
|
||||
let sql = format!(
|
||||
"{} {} {} {} {} {} {}",
|
||||
|
||||
Reference in New Issue
Block a user