momentohq / client-sdk-rust

Official Rust SDK for Momento Serverless Cache
Apache License 2.0
12 stars 4 forks source link

fix: interceptor should send only once per client #384

Closed malandis closed 3 months ago

malandis commented 3 months ago

Previously we used a static variable to keep track of whether the agent header was sent. This would send one agent header unconditionally of the client type.

In order to send a single agent header per client type (cache vs topics vs store) we make the variable an instance variable of the HeaderInterceptor.