Skip to content

Commit 72cb547

Browse files
authored
Merge pull request #11 from 0KnowledgeNetwork/misc
misc defaults, docs, fixes
2 parents 86cfb9a + ccbf2a4 commit 72cb547

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cd ../appchain
3939
pnpm install
4040

4141
# build appchain for appchain-agent
42-
pnpm run build --filter=chain
42+
pnpm run build --filter chain --filter qry
4343

4444
# run appchain sequencer, for example
4545
pnpm env:inmemory dev --filter chain -- --logLevel DEBUG

clients/go/chainbridge/chainbridge.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ func NewChainBridge(socketFileOrCommandName string, commandArgs ...string) *Chai
101101
return &ChainBridge{
102102
cmd: cmd,
103103
socketFile: socketFileOrCommandName,
104-
dialRetries: 10,
105-
dialTimeout: 3 * time.Second,
106-
cmdTimeout: 20 * time.Second,
104+
idCounter: 0,
105+
dialRetries: 15,
106+
dialTimeout: 10 * time.Second,
107+
cmdTimeout: 50 * time.Second,
107108
reconnect: true,
108109
isConnected: false,
109110
}
@@ -267,8 +268,8 @@ func (c *ChainBridge) Command(command string, payload []byte) (CommandResponse,
267268

268269
// Generate a unique ID for the request
269270
c.idCounterMu.Lock()
270-
reqID := c.idCounter
271271
c.idCounter++
272+
reqID := c.idCounter
272273
c.idCounterMu.Unlock()
273274

274275
req := CommandRequest{

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ program
8484
.option(
8585
"--tx-status-interval <interval>",
8686
"status check interval (ms)",
87-
"1000",
87+
"5000",
8888
)
8989
.option(
9090
"--tx-status-retries <retries>",

0 commit comments

Comments
 (0)