@@ -156,11 +156,6 @@ func (tt *TransactionUploader) PctComplete() float64 {
156
156
* next chunk until it completes.
157
157
*/
158
158
func (tt * TransactionUploader ) UploadChunk () error {
159
- defer func () {
160
- if tt .TotalChunks () > 0 {
161
- fmt .Printf ("%f%% completes, %d/%d \n " , tt .PctComplete (), tt .UploadedChunks (), tt .TotalChunks ())
162
- }
163
- }()
164
159
if tt .IsComplete () {
165
160
return errors .New ("Upload is already complete." )
166
161
}
@@ -218,8 +213,7 @@ func (tt *TransactionUploader) UploadChunk() error {
218
213
if err != nil {
219
214
return err
220
215
}
221
- body , statusCode , err := tt .Client .SubmitChunks (gc )
222
- fmt .Println ("post tx chunk body: " , body )
216
+ _ , statusCode , err := tt .Client .SubmitChunks (gc )
223
217
tt .LastRequestTimeEnd = time .Now ().UnixNano () / 1000000
224
218
tt .LastResponseStatus = statusCode
225
219
if statusCode == 200 {
@@ -317,8 +311,7 @@ func (tt *TransactionUploader) uploadTx(withBody bool) error {
317
311
// Post the Transaction with Data.
318
312
tt .Transaction .Data = utils .Base64Encode (tt .Data )
319
313
}
320
- body , statusCode , err := tt .Client .SubmitTransaction (tt .Transaction )
321
- fmt .Printf ("uplaodTx; body: %s, status: %d, txId: %s \n " , body , statusCode , tt .Transaction .ID )
314
+ _ , statusCode , err := tt .Client .SubmitTransaction (tt .Transaction )
322
315
if err != nil {
323
316
tt .LastResponseError = err .Error ()
324
317
return errors .New (fmt .Sprintf ("Unable to upload Transaction: %d, %v" , statusCode , err ))
0 commit comments