Skip to content

Commit a55b4dc

Browse files
formatting code
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
1 parent 326cb80 commit a55b4dc

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

glightning/lightning_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"bufio"
55
"errors"
66
"fmt"
7-
"github.com/niftynei/glightning/glightning"
87
"github.com/stretchr/testify/assert"
8+
"github.com/niftynei/glightning/glightning"
99
"io"
1010
"io/ioutil"
1111
"net"
@@ -262,7 +262,7 @@ func TestListPeers(t *testing.T) {
262262
OutPaymentsFulfilled: 123,
263263
OutMilliSatoshiFulfilled: 123,
264264
OutgoingFulfilledMsat: "123msat",
265-
Htlcs: htlcs,
265+
Htlcs: htlcs,
266266
},
267267
},
268268
},
@@ -367,10 +367,10 @@ func TestListPays(t *testing.T) {
367367
}
368368
assert.Equal(t, []glightning.PaymentFields{
369369
glightning.PaymentFields{
370-
Bolt11: "lnbcrt100n1pw5mktvpp53a20un076gq93swhnemdmyday8c88kj9yh7d3k66c49narluy0dsdq0vehhygrzd3hk7eqxqyjw5qcqp2zwqux7t9zyelgcuwc535ugs5sylwdh0fu03xrzugu2zzljwvtg3q4xy22u3mhvxx3ag09jyjpx5lxl7lwux5l2mge8r85havpspm09gpnfxxsw",
371-
PaymentPreImage: "c907587348984baf0ae031b286bf1c9427abfa492b254aca67b6809fd9b58d7c",
372-
Status: "complete",
373-
Label: "optional",
370+
Bolt11: "lnbcrt100n1pw5mktvpp53a20un076gq93swhnemdmyday8c88kj9yh7d3k66c49narluy0dsdq0vehhygrzd3hk7eqxqyjw5qcqp2zwqux7t9zyelgcuwc535ugs5sylwdh0fu03xrzugu2zzljwvtg3q4xy22u3mhvxx3ag09jyjpx5lxl7lwux5l2mge8r85havpspm09gpnfxxsw",
371+
PaymentPreImage: "c907587348984baf0ae031b286bf1c9427abfa492b254aca67b6809fd9b58d7c",
372+
Status: "complete",
373+
Label: "optional",
374374
AmountSentMilliSatoshi: "10000msat",
375375
},
376376
}, forwards)

glightning/plugin.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,9 +1060,9 @@ func (gm GetManifestMethod) Call() (jrpc2.Result, error) {
10601060
}
10611061

10621062
type ProxyConf struct {
1063-
Type string `json:"type"`
1063+
Type string `json:"type"`
10641064
Address string `json:"address"`
1065-
port uint64 `json:"port"`
1065+
port uint64 `json:"port"`
10661066
}
10671067

10681068
type Config struct {
@@ -1073,7 +1073,7 @@ type Config struct {
10731073
Features *FeatureBits `json:"feature_set,omitempty"`
10741074
Proxy *proxyConf `json:"proxy,omitempty"`
10751075
TorV3Enabled bool `json:"torv3-enabled,omitempty"`
1076-
AlwaysProxy bool `json:"always_use_proxy,omitempty"`
1076+
AlwaysProxy bool `json:"always_use_proxy,omitempty"`
10771077
}
10781078

10791079
type InitMethod struct {

glightning/plugin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package glightning_test
33
import (
44
"bufio"
55
"fmt"
6+
"github.com/stretchr/testify/assert"
67
"github.com/niftynei/glightning/glightning"
78
"github.com/niftynei/glightning/jrpc2"
8-
"github.com/stretchr/testify/assert"
99
"io"
1010
"log"
1111
"os"

glightning/tests/interop_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"bufio"
55
"errors"
66
"fmt"
7+
"github.com/stretchr/testify/assert"
78
"github.com/niftynei/glightning/gbitcoin"
89
"github.com/niftynei/glightning/glightning"
9-
"github.com/stretchr/testify/assert"
1010
"io"
1111
"io/ioutil"
1212
"log"

jrpc2/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77
"io"
88
"log"
9+
"math"
910
"net"
1011
"os"
1112
"sync"

0 commit comments

Comments
 (0)