Skip to content

Commit

Permalink
Fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore committed Jan 15, 2022
1 parent 3289588 commit 34555fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/plugins/elasticsearch/elasticsearch_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ vector<operation_history_object> elasticsearch_plugin::get_account_history(
uint64_t limit,
const operation_history_id_type& start ) const
{
const string account_id_string = std::string( account_id );
const auto account_id_string = std::string( account_id );

const auto stop_number = stop.instance.value;
const auto start_number = start.instance.value;
Expand Down
4 changes: 2 additions & 2 deletions libraries/utilities/elasticsearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ static std::string joinBulkLines(const std::vector<std::string>& bulk)
return bulking;
}

static long getResponseCode(CURL *handler)
static uint16_t getResponseCode(CURL *handler)
{
long http_code = 0;
curl_easy_getinfo (handler, CURLINFO_RESPONSE_CODE, &http_code);
return http_code;
return static_cast<uint16_t>(http_code);
}

bool SendBulk(ES&& es)
Expand Down

0 comments on commit 34555fc

Please sign in to comment.