[management] fix force-push to feature/flow branch (#3500)

This commit is contained in:
hakansa
2025-03-14 01:36:46 +08:00
committed by GitHub
parent 18871b554f
commit 78b86e0beb
10 changed files with 152 additions and 112 deletions

View File

@@ -2185,6 +2185,7 @@ func (s *SqlStore) GetPeerByIP(ctx context.Context, lockStrength LockingStrength
result := s.db.Clauses(clause.Locking{Strength: string(lockStrength)}).
First(&peer, "account_id = ? AND ip = ?", accountID, jsonValue)
if result.Error != nil {
log.WithContext(ctx).Errorf("failed to get peer from the store: %s", result.Error)
return nil, status.Errorf(status.Internal, "failed to get peer from store")
}