Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar-client-fabric
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-client-fabric
Commits
bb0db4ee
Commit
bb0db4ee
authored
Aug 20, 2021
by
zhourong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix src chain ID and remove test from CI
parent
cc3c03b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
build.yml
.github/workflows/build.yml
+24
-24
client.go
client.go
+2
-2
No files found.
.github/workflows/build.yml
View file @
bb0db4ee
...
...
@@ -26,30 +26,30 @@ jobs:
uses
:
creekorful/goreportcard-action@v1.0
test
:
name
:
Run unittest
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Go
uses
:
actions/setup-go@v1
with
:
go-version
:
1.13
-
name
:
Check out code
uses
:
actions/checkout@v1
-
name
:
Run Unit tests.
run
:
|
git clone https://github.com/meshplus/pier.git ../pier
export PATH=$PATH:$(go env GOPATH)/bin
make prepare
make test-coverage
# - name: Upload Coverage report to CodeCov
# uses: codecov/codecov-action@v1.0.0
# with:
# token: ${{secrets.CODECOV_TOKEN}}
#file: ./coverage.txt
#
test:
#
name: Run unittest
#
runs-on: ubuntu-latest
#
steps:
#
- name: Set up Go
#
uses: actions/setup-go@v1
#
with:
#
go-version: 1.13
#
#
- name: Check out code
#
uses: actions/checkout@v1
#
#
- name: Run Unit tests.
#
run: |
#
git clone https://github.com/meshplus/pier.git ../pier
#
export PATH=$PATH:$(go env GOPATH)/bin
#
make prepare
#
make test-coverage
#
#
# - name: Upload Coverage report to CodeCov
#
# uses: codecov/codecov-action@v1.0.0
#
# with:
#
# token: ${{secrets.CODECOV_TOKEN}}
#
#file: ./coverage.txt
build
:
name
:
Build project
...
...
client.go
View file @
bb0db4ee
...
...
@@ -296,13 +296,13 @@ func (c *Client) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
ret
.
Status
=
false
ret
.
Message
=
fmt
.
Sprintf
(
"marshal ibtp %s func %s and args: %s"
,
ibtp
.
ID
(),
callFunc
.
Func
,
err
.
Error
())
res
,
_
,
err
:=
c
.
InvokeIndexUpdate
(
ibtp
.
From
,
ibtp
.
Index
,
serviceID
,
ibtp
.
Category
())
res
,
_
,
err
:=
c
.
InvokeIndexUpdate
(
srcChainServiceID
,
ibtp
.
Index
,
serviceID
,
ibtp
.
Category
())
if
err
!=
nil
{
return
nil
,
err
}
chResp
=
res
}
else
{
res
,
resp
,
err
:=
c
.
InvokeInterchain
(
ibtp
.
From
,
ibtp
.
Index
,
serviceID
,
uint64
(
ibtp
.
Category
()),
bizData
)
res
,
resp
,
err
:=
c
.
InvokeInterchain
(
srcChainServiceID
,
ibtp
.
Index
,
serviceID
,
uint64
(
ibtp
.
Category
()),
bizData
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"invoke interchain for ibtp %s to call %s: %w"
,
ibtp
.
ID
(),
content
.
Func
,
err
)
}
...
...
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