meilisearch / meilisearch-rust

Rust wrapper for the Meilisearch API.

Home Page:https://www.meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why is the api_key and host wrapped inside an Arc?

Jasperav opened this issue · comments

I don't see any calls to Arc::clone in the code. Why aren't the two properties just String?

They indeed should be changed to regular String! This is a refactor that we started doing but has not been applied yet on the Client struct.

If anyone wants to contribute to change their type to regular strings that would be very nice :)

@bidoubiwa Sure, see #338