]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/tx.go
Forbid any later GNU GPL versions autousage
[nncp.git] / src / cypherpunks.ru / nncp / tx.go
index db260cee47d7f87914d5fbaa008185ed600562d6..cb8153fe0419705b991c621a662396e1238c5e64 100644 (file)
@@ -4,8 +4,7 @@ Copyright (C) 2016-2019 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+the Free Software Foundation, version 3 of the License.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -42,7 +41,8 @@ func (ctx *Ctx) Tx(
        pkt *Pkt,
        nice uint8,
        size, minSize int64,
-       src io.Reader) (*Node, error) {
+       src io.Reader,
+) (*Node, error) {
        tmp, err := ctx.NewTmpFileWHash()
        if err != nil {
                return nil, err
@@ -206,7 +206,8 @@ func (ctx *Ctx) TxFileChunked(
        nice uint8,
        srcPath, dstPath string,
        minSize int64,
-       chunkSize int64) error {
+       chunkSize int64,
+) error {
        if dstPath == "" {
                if srcPath == "-" {
                        return errors.New("Must provide destination filename")
@@ -381,7 +382,8 @@ func (ctx *Ctx) TxExec(
        handle string,
        args []string,
        body []byte,
-       minSize int64) error {
+       minSize int64,
+) error {
        path := make([][]byte, 0, 1+len(args))
        path = append(path, []byte(handle))
        for _, arg := range args {