Skip to content
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

Add massa event cache crate #4769

Open
wants to merge 4 commits into
base: mainnet_2_3
Choose a base branch
from
Open

Conversation

sydhds
Copy link
Contributor

@sydhds sydhds commented Oct 29, 2024

No description provided.

@sydhds sydhds marked this pull request as ready for review October 30, 2024 10:45
use massa_models::execution::EventFilter;
use massa_models::output_event::SCOutputEvent;

#[allow(dead_code)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useful?

/// Creates a new `EventCacheController`
pub fn new(cfg: EventCacheConfig) -> Self {
let event_cache = EventCache::new(
cfg.event_cache_path.clone(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the clone() can be removed

Suggested change
cfg.event_cache_path.clone(),
&cfg.event_cache_path,

and in massa-event-cache/src/event_cache.rs:44:

    pub fn new(
        path: &Path,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants