-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MTG-972] synchronizer optimized #333
base: feature/MTG-868-slots-storage
Are you sure you want to change the base?
Changes from 30 commits
9f68ff5
9492a41
8ff64a7
ef2daae
c9790f2
410fd3e
00435a8
7211371
b2917ba
3f4556a
4d9647b
21d9605
e53b9ae
e8b51af
dd1c1f6
14e8a80
18055dc
0be380f
e86bcf9
116ab14
34f6711
8637ef2
bbb62a7
82e6a55
995ba0e
c7edea1
1fc1dda
3d331f5
d326991
a67fb9a
4556bdf
a5006c8
150b789
2a94704
24eb52a
2caedad
2efeace
16c10b8
5ba69be
2d34f03
9a74ad1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -279,7 +279,12 @@ pub fn to_authority( | |
// even if there is no authority for asset we should not set Pubkey::default(), just empty string | ||
let auth_key = update_authority | ||
.map(|update_authority| update_authority.to_string()) | ||
.unwrap_or(authority.as_ref().map(|auth| auth.authority.to_string()).unwrap_or("".to_string())); | ||
.unwrap_or( | ||
authority | ||
.as_ref() | ||
.map(|auth| auth.authority.to_string()) | ||
.unwrap_or("".to_string()), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: |
||
); | ||
|
||
vec![Authority { | ||
address: auth_key, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,10 @@ pub const DEFAULT_SECONDARY_ROCKSDB_PATH: &str = "./my_rocksdb_secondary"; | |
|
||
#[tokio::main(flavor = "multi_thread")] | ||
pub async fn main() -> Result<(), IngesterError> { | ||
tracing_subscriber::fmt::init(); | ||
info!("Starting API server..."); | ||
|
||
let config: ApiConfig = setup_config("API_"); | ||
init_logger(&config.get_log_level()); | ||
// init_logger(&config.get_log_level()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, delete it if it will not be used |
||
|
||
let guard = if config.run_profiling { | ||
Some( | ||
|
@@ -73,6 +73,7 @@ pub async fn main() -> Result<(), IngesterError> { | |
config.database_config.get_database_url()?.as_str(), | ||
min_connections, | ||
max_connections, | ||
None, | ||
red_metrics.clone(), | ||
) | ||
.await?; | ||
|
@@ -120,6 +121,7 @@ pub async fn main() -> Result<(), IngesterError> { | |
rocks_storage.clone(), | ||
json_downloader_metrics.clone(), | ||
red_metrics.clone(), | ||
nft_ingester::config::default_parallel_json_downloaders(), | ||
) | ||
.await, | ||
)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter is unused, indeed. However, completely swallowing the error looks dubious. Maybe should it be logged at least?