From cbf676e40462b70b24c1168d02dcfd5152dc1ac5 Mon Sep 17 00:00:00 2001 From: zhiqiangxu <652732310@qq.com> Date: Thu, 21 Mar 2024 10:05:17 +0800 Subject: [PATCH] lnwire: fix deprecated usage --- lnwire/extra_bytes.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lnwire/extra_bytes.go b/lnwire/extra_bytes.go index 200f313ca..0ebf48f57 100644 --- a/lnwire/extra_bytes.go +++ b/lnwire/extra_bytes.go @@ -4,7 +4,6 @@ import ( "bytes" "fmt" "io" - "io/ioutil" "github.com/lightningnetwork/lnd/tlv" ) @@ -31,7 +30,7 @@ func (e *ExtraOpaqueData) Encode(w *bytes.Buffer) error { func (e *ExtraOpaqueData) Decode(r io.Reader) error { // First, we'll attempt to read a set of bytes contained within the // passed io.Reader (if any exist). - rawBytes, err := ioutil.ReadAll(r) + rawBytes, err := io.ReadAll(r) if err != nil { return err }