Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions clickhouse/query.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ using SelectCallback = std::function<void(const Block& block)>;
using SelectCancelableCallback = std::function<bool(const Block& block)>;
using SelectServerLogCallback = std::function<bool(const Block& block)>;
using ProfileEventsCallback = std::function<bool(const Block& block)>;
using ProfileCallbak = std::function<void(const Profile& profile)>;
using ProfileCallback = std::function<void(const Profile& profile)>;


class Query : public QueryEvents {
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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_;
};

}
Loading