This commit is contained in:
Alexander Pivkin 2025-09-05 15:52:22 +03:00
parent b3cc7b82a1
commit 25bae7a7e1
2 changed files with 4 additions and 5 deletions

View File

@ -7,7 +7,8 @@ import (
func main() {
connection,err := rados.NewConnWithClusterAndUser("ceph","client.admin")
params := params{"ceph","admin"}
connection,err := rados.NewConnWithClusterAndUser(params.cluster,params.user)
if err != nil {
fmt.Println(err)
}

View File

@ -1,10 +1,8 @@
package main
import "time"
const config = "/etc/ceph/ceph.conf"
type params struct {
duration time.Duration
blockSize uint64
cluster string
user string
}