mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-02 07:06:41 +00:00
pass metrics in transactions
This commit is contained in:
@@ -2062,6 +2062,7 @@ func (s *SqlStore) ExecuteInTransaction(ctx context.Context, operation func(stor
|
|||||||
func (s *SqlStore) withTx(tx *gorm.DB) Store {
|
func (s *SqlStore) withTx(tx *gorm.DB) Store {
|
||||||
return &SqlStore{
|
return &SqlStore{
|
||||||
db: tx,
|
db: tx,
|
||||||
|
metrics: s.metrics,
|
||||||
storeEngine: s.storeEngine,
|
storeEngine: s.storeEngine,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user