Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
413ed00a
Commit
413ed00a
authored
Apr 25, 2019
by
lilinleeli1234
Committed by
vipwzw
Apr 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update linter
parent
7b6cf303
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
base.go
plugin/mempool/para/base.go
+2
-2
mempool.go
plugin/mempool/para/mempool.go
+0
-5
No files found.
plugin/mempool/para/base.go
View file @
413ed00a
...
...
@@ -13,7 +13,7 @@ import (
var
mlog
=
log
.
New
(
"module"
,
"mempool.para"
)
var
topic
=
"mempool"
var
RETRY_TIMES
=
3
var
retry_times
=
3
//Mempool mempool 基础类
type
Mempool
struct
{
...
...
@@ -50,7 +50,7 @@ func (mem *Mempool) SetQueueClient(client queue.Client) {
reply
,
err
:=
mem
.
mainGrpcCli
.
SendTransaction
(
context
.
Background
(),
tx
)
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
)
if
err
!=
nil
{
continue
...
...
plugin/mempool/para/mempool.go
View file @
413ed00a
...
...
@@ -9,11 +9,6 @@ import (
//--------------------------------------------------------------------------------
// Module Mempool
type
subConfig
struct
{
PoolCacheSize
int64
`json:"poolCacheSize"`
ProperFee
int64
`json:"properFee"`
}
func
init
()
{
drivers
.
Reg
(
"para"
,
New
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment