@@ -52,10 +52,10 @@ type scriptmgrClient interface {
5252// VizierPassThroughProxy implements the VizierAPI and allows proxying the data to the actual
5353// vizier cluster.
5454type VizierPassThroughProxy struct {
55- nc * nats.Conn
56- vc vzmgrClient
57- sm scriptmgrClient
58- disableScriptModifiation bool
55+ nc * nats.Conn
56+ vc vzmgrClient
57+ sm scriptmgrClient
58+ scriptModificationDisabled bool
5959}
6060
6161// getServiceCredentials returns JWT credentials for inter-service requests.
@@ -65,8 +65,8 @@ func getServiceCredentials(signingKey string) (string, error) {
6565}
6666
6767// NewVizierPassThroughProxy creates a new passthrough proxy.
68- func NewVizierPassThroughProxy (nc * nats.Conn , vc vzmgrClient , sm scriptmgrClient , disableScriptModifiation bool ) * VizierPassThroughProxy {
69- return & VizierPassThroughProxy {nc : nc , vc : vc , sm : sm , disableScriptModifiation : disableScriptModifiation }
68+ func NewVizierPassThroughProxy (nc * nats.Conn , vc vzmgrClient , sm scriptmgrClient , scriptModificationDisabled bool ) * VizierPassThroughProxy {
69+ return & VizierPassThroughProxy {nc : nc , vc : vc , sm : sm , scriptModificationDisabled : scriptModificationDisabled }
7070}
7171
7272func (v * VizierPassThroughProxy ) isScriptModified (ctx context.Context , script string ) (bool , error ) {
@@ -98,7 +98,7 @@ func (v *VizierPassThroughProxy) ExecuteScript(req *vizierpb.ExecuteScriptReques
9898 return err
9999 }
100100 defer rp .Finish ()
101- if v .disableScriptModifiation {
101+ if v .scriptModificationDisabled {
102102 modified , err := v .isScriptModified (srv .Context (), req .QueryStr )
103103 if err != nil {
104104 return err
0 commit comments