Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1do committed Jul 30, 2024
1 parent b2ca08f commit 5900320
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/__tests__/initialization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('Ceramic integration', () => {
const ceramic = new Ceramic(modules, params)
if (EnvironmentUtils.useRustCeramic()) {
await expect(ceramic._init(false)).rejects.toThrow(
"Recon: failed to verify network as js-ceramic is using local but ceramic-one is on inmemory. Pass --network to the js-ceramic or ceramic-one daemon to make them match."
'Recon: failed to verify network as js-ceramic is using local but ceramic-one is on inmemory. Pass --network to the js-ceramic or ceramic-one daemon to make them match.'
)
} else {
await expect(ceramic._init(false)).rejects.toThrow(
Expand Down
9 changes: 6 additions & 3 deletions packages/core/src/recon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ export class ReconApi extends Observable<ReconEventFeedResponse> implements IRec
// in the network, or don't use it at all and just rely on c1, we're okay ignoring that piece
if (!response.name.includes(this.#config.network)) {
throw new Error(
`Recon: failed to verify network as js-ceramic is using ${this.#config.network
} but ceramic-one is on ${response.name
`Recon: failed to verify network as js-ceramic is using ${
this.#config.network
} but ceramic-one is on ${
response.name
}. Pass --network to the js-ceramic or ceramic-one daemon to make them match.`
)
}
Expand Down Expand Up @@ -268,7 +270,8 @@ export class ReconApi extends Observable<ReconEventFeedResponse> implements IRec
retry({
delay: (err) => {
this.#logger.warn(
`Recon: event feed failed, due to error ${err}; attempting to retry in ${this.#pollInterval
`Recon: event feed failed, due to error ${err}; attempting to retry in ${
this.#pollInterval
}ms`
)
return timer(this.#pollInterval)
Expand Down

0 comments on commit 5900320

Please sign in to comment.