mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-16 17:07:36 +00:00
No need to use ptr for NetFee
This commit is contained in:
parent
459271408d
commit
054a4809dd
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue