Skip to content

Commit

Permalink
affinity is actually optional
Browse files Browse the repository at this point in the history
  • Loading branch information
demmer committed Mar 23, 2024
1 parent 19d06e2 commit 7e1900f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions go/vt/vtgateproxy/vtgateproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ func (proxy *VTGateProxy) NewSession(ctx context.Context, options *querypb.Execu
affinity, ok := connectionAttributes[*affinityAttr]
if ok {
values.Set(*affinityAttr, affinity)
} else {
return nil, vterrors.Errorf(vtrpcpb.Code_UNAVAILABLE, "pool type attribute %s not supplied by client", *affinityAttr)
}
}

Expand Down

0 comments on commit 7e1900f

Please sign in to comment.