Skip to main content
Glama
layer.rs416 B
use std::time::Duration; use tower::Layer; use super::service::Delay; pub struct DelayLayer { pub(crate) wait: Duration, } impl DelayLayer { pub fn new(wait: Duration) -> Self { Self { wait } } } impl<S> Layer<S> for DelayLayer { type Service = Delay<S>; fn layer(&self, inner: S) -> Self::Service { Delay { inner, wait: self.wait, } } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server