diff --git a/clickhouse/query.h b/clickhouse/query.h index 0dc82dd1..500cdaef 100644 --- a/clickhouse/query.h +++ b/clickhouse/query.h @@ -82,7 +82,7 @@ using SelectCallback = std::function; using SelectCancelableCallback = std::function; using SelectServerLogCallback = std::function; using ProfileEventsCallback = std::function; -using ProfileCallbak = std::function; +using ProfileCallback = std::function; class Query : public QueryEvents { @@ -174,7 +174,7 @@ class Query : public QueryEvents { return *this; } - inline Query& OnProfile(ProfileCallbak cb) { + inline Query& OnProfile(ProfileCallback cb) { profile_callback_cb_ = std::move(cb); return *this; } @@ -240,7 +240,7 @@ class Query : public QueryEvents { SelectCancelableCallback select_cancelable_cb_; SelectServerLogCallback select_server_log_cb_; ProfileEventsCallback profile_events_callback_cb_; - ProfileCallbak profile_callback_cb_; + ProfileCallback profile_callback_cb_; }; }