Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Jan 12, 2024
1 parent 733e48f commit 1fe8d22
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hscontrol/db/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (hsdb *HSDatabase) GetNodeByAnyKey(
nodeKey key.NodePublic,
oldNodeKey key.NodePublic,
) (*types.Node, error) {
return Read(hsdb.db, func(rx *gorm.DB) (*types.Node, error) {
return Read(hsdb.DB, func(rx *gorm.DB) (*types.Node, error) {
return GetNodeByAnyKey(rx, machineKey, nodeKey, oldNodeKey)
})
}
Expand Down Expand Up @@ -547,7 +547,10 @@ func IsRoutesEnabled(tx *gorm.DB, node *types.Node, routeStr string) bool {
return false
}

func (hsdb *HSDatabase) enableRoutes(node *types.Node, routeStrs ...string) (*types.StateUpdate, error) {
func (hsdb *HSDatabase) enableRoutes(
node *types.Node,
routeStrs ...string,
) (*types.StateUpdate, error) {
return Write(hsdb.DB, func(tx *gorm.DB) (*types.StateUpdate, error) {
return enableRoutes(tx, node, routeStrs...)
})
Expand Down

0 comments on commit 1fe8d22

Please sign in to comment.