@@ -97,7 +97,7 @@ func fillPing(enc *msgpack.Encoder) error {
9797
9898// Ping sends empty request to Tarantool to check connection.
9999func (conn * Connection ) Ping () (resp * Response , err error ) {
100- return conn .Do (NewPingRequest ())
100+ return conn .Do (NewPingRequest ()). Get ()
101101}
102102
103103// Select performs select to box space.
@@ -311,44 +311,44 @@ func (conn *Connection) SelectAsync(space, index interface{}, offset, limit, ite
311311 Limit (limit ).
312312 Iterator (iterator ).
313313 Key (key )
314- return conn .DoAsync (req )
314+ return conn .Do (req )
315315}
316316
317317// InsertAsync sends insert action to Tarantool and returns Future.
318318// Tarantool will reject Insert when tuple with same primary key exists.
319319func (conn * Connection ) InsertAsync (space interface {}, tuple interface {}) * Future {
320320 req := NewInsertRequest (space ).Tuple (tuple )
321- return conn .DoAsync (req )
321+ return conn .Do (req )
322322}
323323
324324// ReplaceAsync sends "insert or replace" action to Tarantool and returns Future.
325325// If tuple with same primary key exists, it will be replaced.
326326func (conn * Connection ) ReplaceAsync (space interface {}, tuple interface {}) * Future {
327327 req := NewReplaceRequest (space ).Tuple (tuple )
328- return conn .DoAsync (req )
328+ return conn .Do (req )
329329}
330330
331331// DeleteAsync sends deletion action to Tarantool and returns Future.
332332// Future's result will contain array with deleted tuple.
333333func (conn * Connection ) DeleteAsync (space , index interface {}, key interface {}) * Future {
334334 req := NewDeleteRequest (space ).Index (index ).Key (key )
335- return conn .DoAsync (req )
335+ return conn .Do (req )
336336}
337337
338338// Update sends deletion of a tuple by key and returns Future.
339339// Future's result will contain array with updated tuple.
340340func (conn * Connection ) UpdateAsync (space , index interface {}, key , ops interface {}) * Future {
341341 req := NewUpdateRequest (space ).Index (index ).Key (key )
342342 req .ops = ops
343- return conn .DoAsync (req )
343+ return conn .Do (req )
344344}
345345
346346// UpsertAsync sends "update or insert" action to Tarantool and returns Future.
347347// Future's sesult will not contain any tuple.
348348func (conn * Connection ) UpsertAsync (space interface {}, tuple interface {}, ops interface {}) * Future {
349349 req := NewUpsertRequest (space ).Tuple (tuple )
350350 req .ops = ops
351- return conn .DoAsync (req )
351+ return conn .Do (req )
352352}
353353
354354// CallAsync sends a call to registered Tarantool function and returns Future.
@@ -357,36 +357,36 @@ func (conn *Connection) UpsertAsync(space interface{}, tuple interface{}, ops in
357357// Otherwise, uses request code for Tarantool 1.6.
358358func (conn * Connection ) CallAsync (functionName string , args interface {}) * Future {
359359 req := NewCallRequest (functionName ).Args (args )
360- return conn .DoAsync (req )
360+ return conn .Do (req )
361361}
362362
363363// Call16Async sends a call to registered Tarantool function and returns Future.
364364// It uses request code for Tarantool 1.6, so future's result is always array of arrays.
365365// Deprecated since Tarantool 1.7.2.
366366func (conn * Connection ) Call16Async (functionName string , args interface {}) * Future {
367367 req := NewCall16Request (functionName ).Args (args )
368- return conn .DoAsync (req )
368+ return conn .Do (req )
369369}
370370
371371// Call17Async sends a call to registered Tarantool function and returns Future.
372372// It uses request code for Tarantool >= 1.7, so future's result will not be converted
373373// (though, keep in mind, result is always array)
374374func (conn * Connection ) Call17Async (functionName string , args interface {}) * Future {
375375 req := NewCall17Request (functionName ).Args (args )
376- return conn .DoAsync (req )
376+ return conn .Do (req )
377377}
378378
379379// EvalAsync sends a Lua expression for evaluation and returns Future.
380380func (conn * Connection ) EvalAsync (expr string , args interface {}) * Future {
381381 req := NewEvalRequest (expr ).Args (args )
382- return conn .DoAsync (req )
382+ return conn .Do (req )
383383}
384384
385385// ExecuteAsync sends a sql expression for execution and returns Future.
386386// Since 1.6.0
387387func (conn * Connection ) ExecuteAsync (expr string , args interface {}) * Future {
388388 req := NewExecuteRequest (expr ).Args (args )
389- return conn .DoAsync (req )
389+ return conn .Do (req )
390390}
391391
392392// KeyValueBind is a type for encoding named SQL parameters
0 commit comments