Skip to content

Commit

Permalink
fix: timeout in milliseconds
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <[email protected]>
  • Loading branch information
harshit-gangal committed Sep 9, 2024
1 parent 7e01664 commit 0ef24ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/vttablet/tabletserver/tabletserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ func (tsv *TabletServer) loadQueryTimeoutWithOptions(options *querypb.ExecuteOpt
}

func loadAuthoritativeTimeout(options *querypb.ExecuteOptions) time.Duration {
if options == nil || options.GetTimeout() == nil {
if options == nil || options.Timeout == nil {
return -1
}
return time.Duration(options.GetAuthoritativeTimeout())
return time.Duration(options.GetAuthoritativeTimeout()) * time.Millisecond
}

// onlineDDLExecutorToggleTableBuffer is called by onlineDDLExecutor as a callback function. onlineDDLExecutor
Expand Down

0 comments on commit 0ef24ab

Please sign in to comment.