mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
Add cluster config metrics in metrics-v3 (#19507)
endpoint: /minio/metrics/v3/cluster/config metrics: - write_quorum - rrs_parity - standard_parity
This commit is contained in:
@@ -92,7 +92,7 @@ func (t *Cache[T]) InitOnce(ttl time.Duration, opts Opts, update func(ctx contex
|
||||
// GetWithCtx will return a cached value or fetch a new one.
|
||||
// passes a caller context, if caller context cancels nothing
|
||||
// is cached.
|
||||
// Tf the Update function returns an error the value is forwarded as is and not cached.
|
||||
// If the Update function returns an error the value is forwarded as is and not cached.
|
||||
func (t *Cache[T]) GetWithCtx(ctx context.Context) (T, error) {
|
||||
v := t.val.Load()
|
||||
ttl := t.ttl
|
||||
|
||||
Reference in New Issue
Block a user