Skip to content

Commit

Permalink
use LazyLock::force
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Sep 8, 2023
1 parent 3a39f98 commit adc1a8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connector/src/source/cdc/source/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

use std::str::FromStr;
use std::sync::LazyLock;

use anyhow::{anyhow, Result};
use async_trait::async_trait;
Expand Down Expand Up @@ -125,7 +126,7 @@ where
let (tx, mut rx) = mpsc::channel(1024);
let tx: Box<GetEventStreamJniSender> = Box::new(tx);

JVM.as_ref()?;
LazyLock::force(&JVM).as_ref()?;

let get_event_stream_request = GetEventStreamRequest {
source_id: self.source_id,
Expand Down

0 comments on commit adc1a8d

Please sign in to comment.