*Remove logging
This commit is contained in:
parent
d9a3d30b7d
commit
c7c44a0cd2
|
@ -136,10 +136,8 @@ export default class Client {
|
||||||
public async subscribe(callback: (ei: ExecutionInfo) => AsyncOrSync<void>) {
|
public async subscribe(callback: (ei: ExecutionInfo) => AsyncOrSync<void>) {
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
console.time("subscribe sync");
|
|
||||||
await this._sync();
|
await this._sync();
|
||||||
const ei = await this.getLatestExecution();
|
const ei = await this.getLatestExecution();
|
||||||
console.timeEnd("subscribe sync");
|
|
||||||
if (ei && ei.blockhash !== this.latestBlockHash) {
|
if (ei && ei.blockhash !== this.latestBlockHash) {
|
||||||
this.latestBlockHash = ei.blockhash;
|
this.latestBlockHash = ei.blockhash;
|
||||||
return await callback(ei);
|
return await callback(ei);
|
||||||
|
|
Loading…
Reference in New Issue