services/rfq/relayer/reldb/base/rebalance.go
Method Store.UpdateLatestRebalance
has 7 return statements (exceeds 4 allowed). Open
Open
func (s Store) UpdateLatestRebalance(ctx context.Context, rebalance reldb.Rebalance) error {
tx := s.DB().WithContext(ctx).Begin()
if tx.Error != nil {
return fmt.Errorf("could not start transaction: %w", tx.Error)
}
Method Store.UpdateRebalance
has 6 return statements (exceeds 4 allowed). Open
Open
func (s Store) UpdateRebalance(ctx context.Context, rebalance reldb.Rebalance, updateID bool) error {
tx := s.DB().WithContext(ctx).Begin()
if tx.Error != nil {
return fmt.Errorf("could not start transaction: %w", tx.Error)
}