mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
Merge pull request #8572 from zhiqiangxu/fix_deprecated
lnwire: fix deprecated usage
This commit is contained in:
commit
9e59fb4563
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue