mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 07:47:36 +00:00
metrics, tuning in tests, db cleanups, fix concurrency issue (#1895)
This commit is contained in:
@@ -602,7 +602,7 @@ func (h *Headscale) registerNodeForOIDCCallback(
|
||||
return err
|
||||
}
|
||||
|
||||
if err := h.db.DB.Transaction(func(tx *gorm.DB) error {
|
||||
if err := h.db.Write(func(tx *gorm.DB) error {
|
||||
if _, err := db.RegisterNodeFromAuthCallback(
|
||||
// TODO(kradalby): find a better way to use the cache across modules
|
||||
tx,
|
||||
|
Reference in New Issue
Block a user