Skip to content

Commit

Permalink
formatting code
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Oct 27, 2021
1 parent 326cb80 commit a55b4dc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions glightning/lightning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"bufio"
"errors"
"fmt"
"github.com/niftynei/glightning/glightning"
"github.com/stretchr/testify/assert"
"github.com/niftynei/glightning/glightning"
"io"
"io/ioutil"
"net"
Expand Down Expand Up @@ -262,7 +262,7 @@ func TestListPeers(t *testing.T) {
OutPaymentsFulfilled: 123,
OutMilliSatoshiFulfilled: 123,
OutgoingFulfilledMsat: "123msat",
Htlcs: htlcs,
Htlcs: htlcs,
},
},
},
Expand Down Expand Up @@ -367,10 +367,10 @@ func TestListPays(t *testing.T) {
}
assert.Equal(t, []glightning.PaymentFields{
glightning.PaymentFields{
Bolt11: "lnbcrt100n1pw5mktvpp53a20un076gq93swhnemdmyday8c88kj9yh7d3k66c49narluy0dsdq0vehhygrzd3hk7eqxqyjw5qcqp2zwqux7t9zyelgcuwc535ugs5sylwdh0fu03xrzugu2zzljwvtg3q4xy22u3mhvxx3ag09jyjpx5lxl7lwux5l2mge8r85havpspm09gpnfxxsw",
PaymentPreImage: "c907587348984baf0ae031b286bf1c9427abfa492b254aca67b6809fd9b58d7c",
Status: "complete",
Label: "optional",
Bolt11: "lnbcrt100n1pw5mktvpp53a20un076gq93swhnemdmyday8c88kj9yh7d3k66c49narluy0dsdq0vehhygrzd3hk7eqxqyjw5qcqp2zwqux7t9zyelgcuwc535ugs5sylwdh0fu03xrzugu2zzljwvtg3q4xy22u3mhvxx3ag09jyjpx5lxl7lwux5l2mge8r85havpspm09gpnfxxsw",
PaymentPreImage: "c907587348984baf0ae031b286bf1c9427abfa492b254aca67b6809fd9b58d7c",
Status: "complete",
Label: "optional",
AmountSentMilliSatoshi: "10000msat",
},
}, forwards)
Expand Down
6 changes: 3 additions & 3 deletions glightning/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -1060,9 +1060,9 @@ func (gm GetManifestMethod) Call() (jrpc2.Result, error) {
}

type ProxyConf struct {
Type string `json:"type"`
Type string `json:"type"`
Address string `json:"address"`
port uint64 `json:"port"`
port uint64 `json:"port"`
}

type Config struct {
Expand All @@ -1073,7 +1073,7 @@ type Config struct {
Features *FeatureBits `json:"feature_set,omitempty"`
Proxy *proxyConf `json:"proxy,omitempty"`
TorV3Enabled bool `json:"torv3-enabled,omitempty"`
AlwaysProxy bool `json:"always_use_proxy,omitempty"`
AlwaysProxy bool `json:"always_use_proxy,omitempty"`
}

type InitMethod struct {
Expand Down
2 changes: 1 addition & 1 deletion glightning/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package glightning_test
import (
"bufio"
"fmt"
"github.com/stretchr/testify/assert"
"github.com/niftynei/glightning/glightning"
"github.com/niftynei/glightning/jrpc2"
"github.com/stretchr/testify/assert"
"io"
"log"
"os"
Expand Down
2 changes: 1 addition & 1 deletion glightning/tests/interop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bufio"
"errors"
"fmt"
"github.com/stretchr/testify/assert"
"github.com/niftynei/glightning/gbitcoin"
"github.com/niftynei/glightning/glightning"
"github.com/stretchr/testify/assert"
"io"
"io/ioutil"
"log"
Expand Down
1 change: 1 addition & 0 deletions jrpc2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"io"
"log"
"math"
"net"
"os"
"sync"
Expand Down

0 comments on commit a55b4dc

Please sign in to comment.