Use new gofumpt (#21613)

Update tinylib. Should fix CI.

`gofumpt -w .&&go generate ./...`
This commit is contained in:
Klaus Post
2025-09-28 22:59:21 +02:00
committed by GitHub
parent 456d9462e5
commit b8631cf531
171 changed files with 881 additions and 899 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ func getHosts(n int) (hosts []string, listeners []net.Listener, err error) {
hosts = append(hosts, "http://"+addr.String())
listeners = append(listeners, l)
}
return
return hosts, listeners, err
}
func startHTTPServer(listener net.Listener, handler http.Handler) (server *httptest.Server) {
+2 -2
View File
@@ -1,7 +1,7 @@
package grid
// Code generated by github.com/tinylib/msgp DO NOT EDIT.
package grid
import (
"github.com/tinylib/msgp/msgp"
)
+2 -2
View File
@@ -1,7 +1,7 @@
package grid
// Code generated by github.com/tinylib/msgp DO NOT EDIT.
package grid
import (
"github.com/tinylib/msgp/msgp"
)
+2 -2
View File
@@ -1,7 +1,7 @@
package grid
// Code generated by github.com/tinylib/msgp DO NOT EDIT.
package grid
import (
"bytes"
"testing"
+1 -1
View File
@@ -623,7 +623,7 @@ func (m *muxClient) addResponse(r Response) (ok bool) {
default:
if m.stateless {
// Drop message if not stateful.
return
return ok
}
err := errors.New("INTERNAL ERROR: Response was blocked")
gridLogIf(m.ctx, err)
+10 -10
View File
@@ -74,7 +74,7 @@ func (m *MSS) UnmarshalMsg(bts []byte) (o []byte, err error) {
zb0002, bts, err = msgp.ReadMapHeaderBytes(bts)
if err != nil {
err = msgp.WrapError(err, "Values")
return
return o, err
}
dst := *m
if dst == nil {
@@ -91,12 +91,12 @@ func (m *MSS) UnmarshalMsg(bts []byte) (o []byte, err error) {
za0001, bts, err = msgp.ReadStringBytes(bts)
if err != nil {
err = msgp.WrapError(err, "Values")
return
return o, err
}
za0002, bts, err = msgp.ReadStringBytes(bts)
if err != nil {
err = msgp.WrapError(err, "Values", za0001)
return
return o, err
}
dst[za0001] = za0002
}
@@ -329,7 +329,7 @@ func (u URLValues) MarshalMsg(b []byte) (o []byte, err error) {
o = msgp.AppendString(o, zb0007[zb0008])
}
}
return
return o, err
}
// UnmarshalMsg implements msgp.Unmarshaler
@@ -338,7 +338,7 @@ func (u *URLValues) UnmarshalMsg(bts []byte) (o []byte, err error) {
zb0004, bts, err = msgp.ReadMapHeaderBytes(bts)
if err != nil {
err = msgp.WrapError(err)
return
return o, err
}
if *u == nil {
*u = urlValuesPool.Get()
@@ -356,13 +356,13 @@ func (u *URLValues) UnmarshalMsg(bts []byte) (o []byte, err error) {
zb0001, bts, err = msgp.ReadStringBytes(bts)
if err != nil {
err = msgp.WrapError(err)
return
return o, err
}
var zb0005 uint32
zb0005, bts, err = msgp.ReadArrayHeaderBytes(bts)
if err != nil {
err = msgp.WrapError(err, zb0001)
return
return o, err
}
if cap(zb0002) >= int(zb0005) {
zb0002 = zb0002[:zb0005]
@@ -373,13 +373,13 @@ func (u *URLValues) UnmarshalMsg(bts []byte) (o []byte, err error) {
zb0002[zb0003], bts, err = msgp.ReadStringBytes(bts)
if err != nil {
err = msgp.WrapError(err, zb0001, zb0003)
return
return o, err
}
}
(*u)[zb0001] = zb0002
}
o = bts
return
return o, err
}
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
@@ -393,7 +393,7 @@ func (u URLValues) Msgsize() (s int) {
}
}
return
return s
}
// JSONPool is a pool for JSON objects that unmarshal into T.