]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/jobs.go
Go 1.6 compatibility revert fix
[nncp.git] / src / cypherpunks.ru / nncp / jobs.go
index 2bbde622895d3469b0adc51b3027fc38c21377ac..1f3afd1e4f93534347b1826b73e28a62c48c16e1 100644 (file)
@@ -19,7 +19,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 package nncp
 
 import (
-       "io"
        "os"
        "path/filepath"
        "strconv"
@@ -69,7 +68,7 @@ func (ctx *Ctx) Jobs(nodeId *NodeId, xx TRxTx) chan Job {
                                fd.Close()
                                continue
                        }
-                       fd.Seek(0, io.SeekStart)
+                       fd.Seek(0, 0)
                        ctx.LogD("jobs", SDS{
                                "xx":   string(xx),
                                "node": pktEnc.Sender,