From 1d5189bd25f8392c94dee5a7d50717d6d096c511 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 27 Jun 2018 16:30:47 -0700 Subject: [PATCH] channeldb/forwarding_log: use public Read/WriteElements --- channeldb/forwarding_log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channeldb/forwarding_log.go b/channeldb/forwarding_log.go index 3f230fe4..b444e32c 100644 --- a/channeldb/forwarding_log.go +++ b/channeldb/forwarding_log.go @@ -83,7 +83,7 @@ type ForwardingEvent struct { // io.Writer, using the expected DB format. Note that the timestamp isn't // serialized as this will be the key value within the bucket. func encodeForwardingEvent(w io.Writer, f *ForwardingEvent) error { - return writeElements( + return WriteElements( w, f.IncomingChanID, f.OutgoingChanID, f.AmtIn, f.AmtOut, ) } @@ -93,7 +93,7 @@ func encodeForwardingEvent(w io.Writer, f *ForwardingEvent) error { // won't be decoded, as the caller is expected to set this due to the bucket // structure of the forwarding log. func decodeForwardingEvent(r io.Reader, f *ForwardingEvent) error { - return readElements( + return ReadElements( r, &f.IncomingChanID, &f.OutgoingChanID, &f.AmtIn, &f.AmtOut, ) }