]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/tx.go
Prefixed progress messages
[nncp.git] / src / tx.go
index 67bb659a672426895919fcd5961633c75d455df9..1281841c32ea75a25e2e8491c534302e5a00795b 100644 (file)
--- a/src/tx.go
+++ b/src/tx.go
@@ -108,8 +108,8 @@ func (ctx *Ctx) Tx(
        }
        go func() {
                _, err := CopyProgressed(
-                       tmp.W, pipeR,
-                       SDS{"xx": string(TTx), "pkt": pktName, "fullsize": curSize},
+                       tmp.W, pipeR, "Tx",
+                       SDS{"pkt": pktName, "fullsize": curSize},
                        ctx.ShowPrgrs,
                )
                errs <- err
@@ -532,11 +532,11 @@ func (ctx *Ctx) TxTrns(node *Node, nice uint8, size int64, src io.Reader) error
        if err != nil {
                return err
        }
-       if _, err = CopyProgressed(tmp.W, src, SDS{
-               "xx":       string(TTx),
-               "pkt":      node.Id.String(),
-               "fullsize": size,
-       }, ctx.ShowPrgrs); err != nil {
+       if _, err = CopyProgressed(
+               tmp.W, src, "Tx trns",
+               SDS{"pkt": node.Id.String(), "fullsize": size},
+               ctx.ShowPrgrs,
+       ); err != nil {
                return err
        }
        nodePath := filepath.Join(ctx.Spool, node.Id.String())