From 91cc8ffe61d3a72c729dfefffa7992c2316c5d10 Mon Sep 17 00:00:00 2001 From: "a.pivkin" Date: Mon, 15 Dec 2025 20:34:28 +0300 Subject: [PATCH] kek --- go_exporter/RBDFactory.go | 4 +--- go_exporter/types.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/go_exporter/RBDFactory.go b/go_exporter/RBDFactory.go index 1808b01..770f7a6 100644 --- a/go_exporter/RBDFactory.go +++ b/go_exporter/RBDFactory.go @@ -3,14 +3,12 @@ package main import ( "encoding/json" "fmt" - - // "github.com/ceph/go-ceph/rados" "github.com/ceph/go-ceph/rbd" pipe "gopkg.in/pipe.v2" ) func PoolFactory(cephConn CephConnection, poolName string) (Pool, error) { - var rbdlist []RBD = []RBD{} + var rbdlist []iRBD = []iRBD{} ioctx, err := cephConn.conn.OpenIOContext(poolName) if err != nil { diff --git a/go_exporter/types.go b/go_exporter/types.go index fe22890..d39e441 100644 --- a/go_exporter/types.go +++ b/go_exporter/types.go @@ -37,6 +37,6 @@ func (r RBD) getSize() int64 { type Pool struct { Name string - RBDlist []RBD + RBDlist []iRBD // RBDlist []string }