Skip to content

Commit 8249941

Browse files
authored
Fix the type error of client example (#1144)
#1030 changed to leverage `BigInt` to represent int64, which leads to the type error of the client example. This PR fixes the type error by updating the client example to use `BigInt` instead of `number`. Fix: #1145
1 parent 4405557 commit 8249941

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/client-example.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ async function main() {
3838
}
3939

4040
const request = {
41-
a: Math.floor(Math.random() * 100),
42-
b: Math.floor(Math.random() * 100),
41+
a: BigInt(Math.floor(Math.random() * 100)),
42+
b: BigInt(Math.floor(Math.random() * 100)),
4343
};
4444

4545
let result = await client.waitForService(1000);

0 commit comments

Comments
 (0)