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
d5a89cc8
Commit
d5a89cc8
authored
Oct 22, 2021
by
harrylee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update broker
parent
e78a46ce
Pipeline
#8155
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
brokerdb.go
plugin/dapp/broker/executor/brokerdb.go
+4
-0
query.go
plugin/dapp/broker/executor/query.go
+5
-0
No files found.
plugin/dapp/broker/executor/brokerdb.go
View file @
d5a89cc8
...
@@ -290,6 +290,10 @@ func getOutterMeta(statedb dbm.KV) (*brokertypes.Meta, error) {
...
@@ -290,6 +290,10 @@ func getOutterMeta(statedb dbm.KV) (*brokertypes.Meta, error) {
return
getMeta
(
statedb
,
calOutterMetaKey
())
return
getMeta
(
statedb
,
calOutterMetaKey
())
}
}
//获取callBackMeta
func
getCallBackMeta
(
statedb
dbm
.
KV
)
(
*
brokertypes
.
Meta
,
error
)
{
return
getMeta
(
statedb
,
calCallBackMetaKey
())
}
//获取innerMeta
//获取innerMeta
func
getInnerMeta
(
statedb
dbm
.
KV
)
(
*
brokertypes
.
Meta
,
error
)
{
func
getInnerMeta
(
statedb
dbm
.
KV
)
(
*
brokertypes
.
Meta
,
error
)
{
return
getMeta
(
statedb
,
calInnerMetaKey
())
return
getMeta
(
statedb
,
calInnerMetaKey
())
...
...
plugin/dapp/broker/executor/query.go
View file @
d5a89cc8
...
@@ -14,6 +14,11 @@ func (b *broker) Query_QueryOutterMeta(query *brokertypes.QueryOutterMeta) (*bro
...
@@ -14,6 +14,11 @@ func (b *broker) Query_QueryOutterMeta(query *brokertypes.QueryOutterMeta) (*bro
return
getOutterMeta
(
b
.
GetStateDB
())
return
getOutterMeta
(
b
.
GetStateDB
())
}
}
//获取callBackMeta
func
(
b
*
broker
)
Query_QueryCallBackMeta
(
query
*
brokertypes
.
QueryNilParam
)
(
*
brokertypes
.
Meta
,
error
)
{
return
getCallBackMeta
(
b
.
GetStateDB
())
}
//获取inMessage
//获取inMessage
func
(
b
*
broker
)
Query_QueryInMessage
(
query
*
brokertypes
.
QueryInMessage
)
(
*
brokertypes
.
Response
,
error
)
{
func
(
b
*
broker
)
Query_QueryInMessage
(
query
*
brokertypes
.
QueryInMessage
)
(
*
brokertypes
.
Response
,
error
)
{
return
getInMessage
(
b
.
GetStateDB
(),
query
)
return
getInMessage
(
b
.
GetStateDB
(),
query
)
...
...
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