Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar
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
sidecar
Commits
72bfc44d
Commit
72bfc44d
authored
Sep 02, 2021
by
suyanlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify monitor interface
parent
f07ce479
Pipeline
#7932
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
appchain.go
internal/appchain/appchain.go
+2
-2
monitor.go
internal/appchain/monitor.go
+1
-1
No files found.
internal/appchain/appchain.go
View file @
72bfc44d
...
...
@@ -254,8 +254,8 @@ func (a *appChain) ListenIBTP() <-chan *pb.IBTP {
}
// QueryIBTP queries interchain tx recorded in appchain given ibtp id
//func (a *appChain) QueryIBTP(to string,
id string) (*pb.IBTP, error) {
func
(
a
*
appChain
)
QueryIBTP
(
id
string
)
(
*
pb
.
IBTP
,
error
)
{
func
(
a
*
appChain
)
QueryIBTP
(
to
string
,
id
string
)
(
*
pb
.
IBTP
,
error
)
{
//
func (a *appChain) QueryIBTP(id string) (*pb.IBTP, error) {
// TODO(xcc): Encapsulate as a function
args
:=
strings
.
Split
(
id
,
"-"
)
if
len
(
args
)
!=
3
{
...
...
internal/appchain/monitor.go
View file @
72bfc44d
...
...
@@ -8,7 +8,7 @@ type Monitor interface {
ListenIBTP
()
<-
chan
*
pb
.
IBTP
// query historical ibtp by its id
//QueryIBTP(id string) (*pb.IBTP, error)
QueryIBTP
(
id
string
)
(
*
pb
.
IBTP
,
error
)
QueryIBTP
(
to
string
,
id
string
)
(
*
pb
.
IBTP
,
error
)
// QueryLatestMeta queries latest index map of ibtps threw on appchain
QueryOuterMeta
()
map
[
string
]
uint64
}
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