From 89745b8fc45ae76ed5124eb956f8e28d0b2f324a Mon Sep 17 00:00:00 2001 From: Luke Bakken Date: Tue, 12 Apr 2016 14:30:42 -0700 Subject: [PATCH] whitespace --- src/riakc_ts.erl | 20 ++++++++++---------- src/riakc_ts_query_operator.erl | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/riakc_ts.erl b/src/riakc_ts.erl index 5b5d523d..c0d493e8 100644 --- a/src/riakc_ts.erl +++ b/src/riakc_ts.erl @@ -80,7 +80,7 @@ query_common(Pid, Query, Interpolations, Cover) QueryText::binary()) -> {ok, Entries::[term()]} | {error, term()} | {'EXIT', any()}. get_coverage(Pid, Table, QueryText) -> server_call(Pid, - #tscoveragereq{query = #tsinterpolation{base=iolist_to_binary(QueryText)}, + #tscoveragereq{query = #tsinterpolation{base = iolist_to_binary(QueryText)}, replace_cover=undefined, table=iolist_to_binary(Table)}). @@ -122,10 +122,10 @@ put(Pid, Table, ColumnNames, Measurements) delete(Pid, Table, Key, Options) when is_pid(Pid), (is_binary(Table) orelse is_list(Table)), is_list(Key), is_list(Options) -> - Message = #tsdelreq{table =iolist_to_binary(Table), - key =riak_pb_ts_codec:encode_cells_non_strict(Key), - vclock =proplists:get_value(vclock, Options), - timeout=proplists:get_value(timeout, Options)}, + Message = #tsdelreq{table = iolist_to_binary(Table), + key = riak_pb_ts_codec:encode_cells_non_strict(Key), + vclock = proplists:get_value(vclock, Options), + timeout = proplists:get_value(timeout, Options)}, _Response = server_call(Pid, Message). @@ -145,9 +145,9 @@ delete(Pid, Table, Key, Options) get(Pid, Table, Key, Options) when is_pid(Pid), (is_binary(Table) orelse is_list(Table)), is_list(Key), is_list(Options) -> - Message = #tsgetreq{table =iolist_to_binary(Table), - key =Key, - timeout=proplists:get_value(timeout, Options)}, + Message = #tsgetreq{table = iolist_to_binary(Table), + key = Key, + timeout = proplists:get_value(timeout, Options)}, case server_call(Pid, Message) of {error, OtherError} -> @@ -169,8 +169,8 @@ stream_list_keys(Pid, Table, Timeout) when is_integer(Timeout) -> stream_list_keys(Pid, Table, Options) when is_pid(Pid), (is_binary(Table) orelse is_list(Table)), is_list(Options) -> ReqTimeout = proplists:get_value(timeout, Options), - Req = #tslistkeysreq{table=iolist_to_binary(Table), - timeout=ReqTimeout}, + Req = #tslistkeysreq{table = iolist_to_binary(Table), + timeout = ReqTimeout}, ReqId = riakc_pb_socket:mk_reqid(), gen_server:call(Pid, {req, Req, ?DEFAULT_PB_TIMEOUT, {ReqId, self()}}, infinity). diff --git a/src/riakc_ts_query_operator.erl b/src/riakc_ts_query_operator.erl index 03f2d353..c3af13d2 100644 --- a/src/riakc_ts_query_operator.erl +++ b/src/riakc_ts_query_operator.erl @@ -33,8 +33,8 @@ serialize(QueryText, Interpolations) -> Content = #tsinterpolation{ - base=iolist_to_binary(QueryText), - interpolations=serialize_interpolations(Interpolations)}, + base = iolist_to_binary(QueryText), + interpolations = serialize_interpolations(Interpolations)}, #tsqueryreq{query = Content}. serialize_interpolations(Interpolations) ->