Latency middleware for channel.