From 56424bdb5bf2c9cd13f8ced442829d82c4889e7c Mon Sep 17 00:00:00 2001 From: Ilian Aleixev Date: Thu, 25 Apr 2024 12:48:57 -0500 Subject: [PATCH] Cleanup --- CHANGELOG.md | 5 ++++- rai/client.go | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97b54e1..04bcf26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ # Changelog -## v0.5.13-alpha +## v0.5.14-alpha * Added print outs for client.execute. +## v0.5.13-alpha +* Fix (u)int128/hash handling. + ## v0.5.12-alpha * Add beta version of snowflake datastream APIs. diff --git a/rai/client.go b/rai/client.go index 2160a81..76764ac 100644 --- a/rai/client.go +++ b/rai/client.go @@ -974,7 +974,7 @@ func (c *Client) Execute( return nil, err } if isTransactionComplete(&rsp.Transaction) { - fmt.Println(fmt.Sprintf("Txn state: %s.", rsp.Transaction.State)) + fmt.Printf("Txn state: %s.\n", rsp.Transaction.State) return rsp, nil // fast path } id := rsp.Transaction.ID @@ -986,17 +986,17 @@ func (c *Client) Execute( return nil, err } if isTransactionComplete(&rsp.Transaction) { - fmt.Println(fmt.Sprintf("Txn %s state: %s.", id, rsp.Transaction.State)) + fmt.Printf("Txn %s state: %s.", id, rsp.Transaction.State) return rsp, nil } - fmt.Println(fmt.Sprintf("Txn %s state: %s.", id, rsp.Transaction.State)) + fmt.Printf("Txn %s state: %s.", id, rsp.Transaction.State) delta := time.Since(t0) // total run time - fmt.Println(fmt.Sprintf("Delta is %s.", delta)) + fmt.Printf("Delta is %s.", delta) pause := time.Duration(int64(delta) / 5) // 20% of total run time if pause > twoMinutes { pause = twoMinutes } - fmt.Println(fmt.Sprintf("Pause took %s.", pause)) + fmt.Printf("Pause took %s.", pause) time.Sleep(pause) } }