No need to use ptr for NetFee

This commit is contained in:
ditatompel 2024-06-08 00:37:26 +07:00
parent 459271408d
commit 054a4809dd
No known key found for this signature in database
GPG key ID: 31D3D06D77950979

View file

@ -19,7 +19,7 @@ type MoneroRepository interface {
Node(id int) (Node, error) Node(id int) (Node, error)
Add(protocol string, host string, port uint) error Add(protocol string, host string, port uint) error
Nodes(QueryNodes) (Nodes, error) Nodes(QueryNodes) (Nodes, error)
NetFees() []*NetFee NetFees() []NetFee
Countries() ([]Countries, error) Countries() ([]Countries, error)
GiveJob(acceptTor int) (Node, error) GiveJob(acceptTor int) (Node, error)
ProcessJob(report ProbeReport, proberId int64) error ProcessJob(report ProbeReport, proberId int64) error
@ -313,8 +313,8 @@ type NetFee struct {
} }
// Get majority net fee from table tbl_fee // Get majority net fee from table tbl_fee
func (r *MoneroRepo) NetFees() []*NetFee { func (r *MoneroRepo) NetFees() []NetFee {
var netFees []*NetFee var netFees []NetFee
err := r.db.Select(&netFees, ` err := r.db.Select(&netFees, `
SELECT SELECT
nettype, nettype,