meilisearch/meilisearch-rust

Why is the api_key and host wrapped inside an Arc?

Jasperav opened this issue · 2 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