GithubHelp home page GithubHelp logo

Comments (10)

meetwithyash avatar meetwithyash commented on April 28, 2024 2

@ceelias @tobiemh , I have made the changes like the following, Please let me know if it is correct or any other changes needed.

Changes inside file: get.rs
image

Changes inside file: del.rs
image
image

Changes inside file: set.rs
image

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024 1

@meetwithyash are you working on this? If not I'd like to pick this one up

That would be awesome @ceelias!

from surrealdb.

meetwithyash avatar meetwithyash commented on April 28, 2024 1

@tobiemh , Okay I will update it and raise a pull request!

from surrealdb.

meetwithyash avatar meetwithyash commented on April 28, 2024

@tobiemh , I am looking to contribute, Can I work on this one?

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Hey @meetwithyash sorry I missed your comment! Absolutely - any contributions would be amazing 😀👍🚀 !

from surrealdb.

ceelias avatar ceelias commented on April 28, 2024

@meetwithyash are you working on this? If not I'd like to pick this one up

from surrealdb.

tobiemh avatar tobiemh commented on April 28, 2024

Awesome @meetwithyash! I know I originally mentioned buffer_unordered but I think it's probably better if we use buffered here, to ensure that the results are returned in the same order that they are retrieved (but still fetched concurrently).

from surrealdb.

meetwithyash avatar meetwithyash commented on April 28, 2024

@tobiemh , Please check the above pull request #1346 , and please let me know if anything else needed to be updated.

from surrealdb.

ceelias avatar ceelias commented on April 28, 2024

@meetwithyash Looks like you are working on this, ill look for something else to pick up.

I did look at your change though and I think there are some other changes are needed.

You will need to remove the import for try_join_all as suggested in the github action warning in addition to importing buffered()
I think the right import is:

use futures::stream::{StreamExt};

Also, buffered() is creating a stream/list of futures so I think you will need to collect() them in order for them to be awaited.
I'm pretty new to Rust though so take my advice with a grain of salt 😄

from surrealdb.

suhailmalik07 avatar suhailmalik07 commented on April 28, 2024

After modifying as @ceelias described.
Changes:

// try_join_all(futs).await.map(Into::into)

futures::stream::iter(futs)
	.buffered(10)
	.try_collect::<Vec<_>>()
	.await.map(Into::into)

I'm getting this error from async_recursion.

higher-ranked lifetime error
could not prove `for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10> Pin<Box<impl for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9> futures::Future<Output = Result<sql::value::value::Value, err::Error>>>>: CoerceUnsized<Pin<Box<(dyn futures::Future<Output = Result<sql::value::value::Value, err::Error>> + std::marker::Send + 't10)>>>`rustc`

Screenshot 2022-10-22 at 20 23 30

If anyone can help or point me to right direction that will be great.

from surrealdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.