Commit 413ed00a authored by lilinleeli1234's avatar lilinleeli1234 Committed by vipwzw

update linter

parent 7b6cf303
...@@ -13,7 +13,7 @@ import ( ...@@ -13,7 +13,7 @@ import (
var mlog = log.New("module", "mempool.para") var mlog = log.New("module", "mempool.para")
var topic = "mempool" var topic = "mempool"
var RETRY_TIMES = 3 var retry_times = 3
//Mempool mempool 基础类 //Mempool mempool 基础类
type Mempool struct { type Mempool struct {
...@@ -50,7 +50,7 @@ func (mem *Mempool) SetQueueClient(client queue.Client) { ...@@ -50,7 +50,7 @@ func (mem *Mempool) SetQueueClient(client queue.Client) {
reply, err := mem.mainGrpcCli.SendTransaction(context.Background(), tx) reply, err := mem.mainGrpcCli.SendTransaction(context.Background(), tx)
if err != nil { if err != nil {
//进行重试 //进行重试
for i := 0; i < RETRY_TIMES; i++ { for i := 0; i < retry_times; i++ {
reply, err = mem.mainGrpcCli.SendTransaction(context.Background(), tx) reply, err = mem.mainGrpcCli.SendTransaction(context.Background(), tx)
if err != nil { if err != nil {
continue continue
......
...@@ -9,11 +9,6 @@ import ( ...@@ -9,11 +9,6 @@ import (
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
// Module Mempool // Module Mempool
type subConfig struct {
PoolCacheSize int64 `json:"poolCacheSize"`
ProperFee int64 `json:"properFee"`
}
func init() { func init() {
drivers.Reg("para", New) drivers.Reg("para", New)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment