From 054a4809ddd1d691e6fcc5fed16a13e0665df49b Mon Sep 17 00:00:00 2001 From: ditatompel Date: Sat, 8 Jun 2024 00:37:26 +0700 Subject: [PATCH] No need to use ptr for NetFee --- internal/monero/monero.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/monero/monero.go b/internal/monero/monero.go index df0206b..e7251b9 100644 --- a/internal/monero/monero.go +++ b/internal/monero/monero.go @@ -19,7 +19,7 @@ type MoneroRepository interface { Node(id int) (Node, error) Add(protocol string, host string, port uint) error Nodes(QueryNodes) (Nodes, error) - NetFees() []*NetFee + NetFees() []NetFee Countries() ([]Countries, error) GiveJob(acceptTor int) (Node, error) ProcessJob(report ProbeReport, proberId int64) error @@ -313,8 +313,8 @@ type NetFee struct { } // Get majority net fee from table tbl_fee -func (r *MoneroRepo) NetFees() []*NetFee { - var netFees []*NetFee +func (r *MoneroRepo) NetFees() []NetFee { + var netFees []NetFee err := r.db.Select(&netFees, ` SELECT nettype,