Skip to content

Conversation

@Kayanski
Copy link
Contributor

@Kayanski Kayanski commented Jan 12, 2024

This PR aims at adding more examples and doc examples for users to interact with.

Issue with async daemon

It's difficult to interact with the async daemon and contracts
--> For instance, the upload needs an Uploadable argument, but it's not possible to create one with the AsyncDaemon because it doesn't implement TxHandler.
Should we remove that example or change AsyncDaemon a little ?
I don't think it's worth the effort to be honest

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 12, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 800d996
Status:🚫  Build failed.

View logs

@Kayanski Kayanski requested a review from CyberHoward January 23, 2024 09:15
Copy link
Contributor

@CyberHoward CyberHoward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! For the AsyncDaemon we can leave it as it is.

If we really need a good async implementation in the future we can create an AsyncTxHandler trait that's equivalent to the current TxHandler but is all async. But that's not worth doing at the moment.

@codecov
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9998ad5) 66.1% compared to head (800d996) 66.1%.

Additional details and impacted files
Files Coverage Δ
cw-orch-daemon/src/log.rs 61.5% <100.0%> (ø)

@Kayanski Kayanski merged commit fd3e463 into main Jan 23, 2024
@Kayanski Kayanski deleted the docs/add-more-examples branch January 23, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants