Skip to content

Commit

Permalink
Fix missing cache flush.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed May 10, 2022
1 parent 1b50594 commit 0230155
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/storage/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,10 @@ func UpdateGatewayState(ctx context.Context, db sqlx.Execer, id lorawan.EUI64, l
return ErrDoesNotExist
}

if err := FlushGatewayMetaCache(ctx, id); err != nil {
return err
}

log.WithFields(log.Fields{
"gateway_id": id,
"ctx_id": ctx.Value(logging.ContextIDKey),
Expand Down

0 comments on commit 0230155

Please sign in to comment.