commit d102cebe8039786d4ef28599a97db1e5d5b1d51f
parent ecc69da43439bf86fa1ecc71a14595eba1075695
Author: William Casarin <jb55@jb55.com>
Date: Tue, 15 Mar 2022 14:50:11 -0700
lnsocket.go: don't export rpcReadAll
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lnsocket.go b/lnsocket.go
@@ -135,7 +135,7 @@ func (ln *LNSocket) Rpc(token string, method string, params string) (string, err
return "", err
}
- return ln.RpcReadAll()
+ return ln.rpcReadAll()
}
func ParseMsgType(bytes []byte) uint16 {
@@ -156,7 +156,7 @@ func (ln *LNSocket) Recv() (uint16, []byte, error) {
return msgtype, res[2:], nil
}
-func (ln *LNSocket) RpcReadAll() (string, error) {
+func (ln *LNSocket) rpcReadAll() (string, error) {
all := []byte{}
for {
msgtype, res, err := ln.Recv()