File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
package api
2
2
3
3
import (
4
- "strings"
5
4
"time"
6
5
7
6
rhp2 "go.sia.tech/core/rhp/v2"
@@ -430,7 +429,7 @@ func (w WalletTransactionsResp) PrometheusMetric() (metrics []prometheus.Metric)
430
429
metrics = append (metrics , prometheus.Metric {
431
430
Name : metricName ,
432
431
Labels : map [string ]any {
433
- "txid" : strings . Split ( txn .ID .String (), ":" )[ 1 ] ,
432
+ "txid" : txn .ID .String (),
434
433
"type" : txn .Type ,
435
434
},
436
435
Value : value ,
@@ -454,7 +453,7 @@ func (w WalletPendingResp) PrometheusMetric() (metrics []prometheus.Metric) {
454
453
metrics = append (metrics , prometheus.Metric {
455
454
Name : metricName ,
456
455
Labels : map [string ]any {
457
- "txid" : strings . Split ( txn .ID .String (), ":" )[ 1 ] ,
456
+ "txid" : txn .ID .String (),
458
457
"type" : txn .Type ,
459
458
},
460
459
Value : value ,
You can’t perform that action at this time.
0 commit comments