Skip to content

Commit

Permalink
rm unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanKung committed Dec 8, 2023
1 parent 01106e1 commit a127ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/src/backend/native/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl WasmABIContainer {
pub fn new(msg: Option<bytes::Bytes>, provider: Arc<Provider>) -> Self {
Self {
msg: Arc::new(RwLock::new(msg.map(Box::new))),
provider: Arc::new(RwLock::new(Some(provider.clone()))),
provider: Arc::new(RwLock::new(Some(provider))),
}
}
}
Expand Down Expand Up @@ -328,7 +328,7 @@ pub mod loader {
impl super::ExtensionHandlerCaller for Handler {
fn call(&self, msg: bytes::Bytes, provider: Arc<Provider>) -> Result<()> {
self.container.set_message(msg)?;
self.container.set_provider(provider.clone())?;
self.container.set_provider(provider)?;
let native_container = self.container.clone().to_native();
{
let mut mem = WASM_MEM
Expand Down

0 comments on commit a127ba4

Please sign in to comment.