Skip to content

Commit

Permalink
Revert unnecessary change
Browse files Browse the repository at this point in the history
Signed-off-by: Chase Engelbrecht <[email protected]>
  • Loading branch information
engechas committed Jan 30, 2024
1 parent 199f72c commit 3a88a0c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ public OpenSearchSink(final PluginSetting pluginSetting,
dlqPluginSetting.setPipelineName(pluginSetting.getPipelineName());
dlqProvider = pluginFactory.loadPlugin(DlqProvider.class, dlqPluginSetting);
}

this.objectMapper = new ObjectMapper();
}

@Override
Expand Down Expand Up @@ -261,6 +259,8 @@ private void doInitializeInternal() throws IOException {

// Attempt to update the serverless network policy if required argument are given.
maybeUpdateServerlessNetworkPolicy();

this.objectMapper = new ObjectMapper();
this.initialized = true;
LOG.info("Initialized OpenSearch sink");
}
Expand Down

0 comments on commit 3a88a0c

Please sign in to comment.