Skip to content

Commit

Permalink
Merge pull request #4 from bianjieai/sheldon/examples
Browse files Browse the repository at this point in the history
update example
  • Loading branch information
zhangyelong authored Jan 17, 2022
2 parents 4051168 + ffb6a67 commit 11c446a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func main() {
// 初始化 OPB 网关账号(测试网环境设置为 nil 即可)
authToken := model.NewAuthToken("TestProjectID", "TestProjectKey", "TestChainAccountAddress")

// 开启 TLS 连接
authToken.SetRequireTransportSecurity(true)
// 创建 OPB 客户端
client := opb.NewClient(cfg, &authToken)

Expand Down

0 comments on commit 11c446a

Please sign in to comment.