Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Kwok <[email protected]>
  • Loading branch information
andy-k-improving committed Nov 25, 2024
1 parent 8671e74 commit 7265ef3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ public class IpEnrichmentResponse extends ActionResponse {
private Map<String, Object> geoLocationData;

/**
* Private method to be used by fromActionResponse call to populate this Response class.
* Public method to be called by fromActionResponse( ) to populate this Response class.
* @param streamInput Stream object which contain the geoLocationData.
* @throws IOException Exception being thrown when given stremInput doesn't contain what IpEnrichmentResponse is expecting.
*/
public IpEnrichmentResponse(StreamInput streamInput) throws IOException {
super(streamInput);
geoLocationData = streamInput.readMap();
log.trace("Constructing IP Enrichment response with values: [{}]", geoLocationData);
}

/**
* Overridden method used by OpenSearch runtime to write result into listener.
* Overridden method used by OpenSearch runtime to serialise this class content into stream.
* @param streamOutput the streamOutput used to construct this response object.
* @throws IOException the IOException.
*/
@Override
public void writeTo(StreamOutput streamOutput) throws IOException {
streamOutput.writeMap(geoLocationData);
log.trace("Constructing IP Enrichment response with values: [{}]", geoLocationData);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ public class IpEnrichmentTransportAction extends HandledTransportAction<ActionRe

private final Ip2GeoCachedDao ip2GeoCachedDao;

// private final String defaultDataSourceName;

private final DatasourceDao datasourceDao;

/**
* Constructor
* @param transportService the transport service
* @param actionFilters the action filters
* @param cachedDao the cached datasource facade
* @param datasourceDao the datasourceDao to read the default datasource from
*/
@Inject
public IpEnrichmentTransportAction(
Expand Down

0 comments on commit 7265ef3

Please sign in to comment.