From d8c068d8e1016c8652a308afb441231cb7cc8fe8 Mon Sep 17 00:00:00 2001 From: Nurlan Moldomurov Date: Wed, 15 Nov 2023 15:34:45 +0300 Subject: [PATCH] PMM-7 add name to copy. --- collector/instance.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/collector/instance.go b/collector/instance.go index 98c45c14..b7a6e8b0 100644 --- a/collector/instance.go +++ b/collector/instance.go @@ -53,7 +53,8 @@ func newInstance(dsn string) (*instance, error) { // copy returns a copy of the instance. func (i *instance) copy() *instance { return &instance{ - dsn: i.dsn, + dsn: i.dsn, + name: i.name, } }