Commit c46609b6 authored by Kirill Smelkov's avatar Kirill Smelkov

xnet/lonet: Fix build with go1.24

    (neo) (z-dev) (g.env) kirr@deca:~/src/neo/src/lab.nexedi.com/kirr/go123/xnet/lonet$ go1.24 test
    # lab.nexedi.com/kirr/go123/xnet/lonet
    # [lab.nexedi.com/kirr/go123/xnet/lonet]
    ./lonet.go:344:25: non-constant format string in call to lab.nexedi.com/kirr/go123/xnet/lonet.protocolErrorf
    FAIL    lab.nexedi.com/kirr/go123/xnet/lonet [build failed]
parent 443006d5
// Copyright (C) 2018-2020 Nexedi SA and Contributors. // Copyright (C) 2018-2025 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com> // Kirill Smelkov <kirr@nexedi.com>
// //
// This program is free software: you can Use, Study, Modify and Redistribute // This program is free software: you can Use, Study, Modify and Redistribute
...@@ -341,7 +341,7 @@ func (n *subNetwork) _loaccept(ctx context.Context, osconn net.Conn) error { ...@@ -341,7 +341,7 @@ func (n *subNetwork) _loaccept(ctx context.Context, osconn net.Conn) error {
// //
// error from osconn.Write is ignored. // error from osconn.Write is ignored.
eproto := func(ereason, detailf string, argv ...interface{}) error { eproto := func(ereason, detailf string, argv ...interface{}) error {
ereply(protocolErrorf(ereason)) ereply(protocolErrorf("%s", ereason))
return protocolErrorf(ereason + ": " + detailf, argv...) return protocolErrorf(ereason + ": " + detailf, argv...)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment