Skip to content

Commit ea03bdd

Browse files
authored
chore: make format golines (#116)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent df3363c commit ea03bdd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

internal/api/tx.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ func (a *Api) handleTxSubmit(w http.ResponseWriter, r *http.Request) {
124124
}
125125
defer r.Body.Close() //nolint:errcheck
126126

127-
submit, err := txbuilder.OgmiosClient().SubmitTx(context.Background(), hex.EncodeToString(txRawBytes))
127+
submit, err := txbuilder.OgmiosClient().
128+
SubmitTx(context.Background(), hex.EncodeToString(txRawBytes))
128129
if err != nil {
129130
http.Error(w, fmt.Sprintf("%s", err), http.StatusBadRequest)
130131
return

internal/database/client.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ func (d *Database) AddClient(
4949
func (d *Database) ExpiredClients() ([]Client, error) {
5050
var ret []Client
5151
result := d.db.
52-
Where("expiration < datetime('now') AND region == ?", d.config.Vpn.Region).
52+
Where(
53+
"expiration < datetime('now') AND region == ?",
54+
d.config.Vpn.Region,
55+
).
5356
Order("expiration").
5457
Find(&ret)
5558
if result.Error != nil {

0 commit comments

Comments
 (0)