]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-trns/main.go
Streamed NNCPE format
[nncp.git] / src / cmd / nncp-trns / main.go
index 6c6e3d47cb9b942186a9a40e369605694c812367..ed96f7321e275128515f5e50abb2d1af337bb8b9 100644 (file)
@@ -27,7 +27,7 @@ import (
        "path/filepath"
        "strings"
 
-       "go.cypherpunks.ru/nncp/v7"
+       "go.cypherpunks.ru/nncp/v8"
 )
 
 func usage() {
@@ -137,7 +137,15 @@ func main() {
        if err != nil {
                panic(err)
        }
-       if _, err = ctx.Tx(node, pktTrns, nice, fi.Size(), 0, fd, pktName, nil); err != nil {
+       if _, _, err = ctx.Tx(
+               node,
+               pktTrns,
+               nice,
+               fi.Size(), 0, nncp.MaxFileSize,
+               fd,
+               pktName,
+               nil,
+       ); err != nil {
                log.Fatalln(err)
        }
 }