mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
multi: prepare for new non-constant string rule
In preparation for the next commit which bumps golang to a newer version, we want to make some code changes that would otherwise render some log-related calls problematic. With go1.24 a new govet rule was added that disallows non-constant strings (i.e including a tag like "%s") in calls to printf. See more in the related issue https://github.com/golang/go/issues/60529.
This commit is contained in:
parent
bce4c049a9
commit
3ccfc5231b
5 changed files with 16 additions and 15 deletions
|
|
@ -364,7 +364,7 @@ func (p *rpcProxy) makeDirector(allowLitRPC bool) func(ctx context.Context,
|
|||
// gRPC server.
|
||||
handled, conn, err := p.subServerMgr.GetRemoteConn(requestURI)
|
||||
if err != nil {
|
||||
return outCtx, nil, status.Errorf(
|
||||
return outCtx, nil, status.Error(
|
||||
codes.Unavailable, err.Error(),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue