github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/internal/topic/convertors.go (about) 1 package topic 2 3 import ( 4 "github.com/ydb-platform/ydb-go-sdk/v3/internal/config" 5 "github.com/ydb-platform/ydb-go-sdk/v3/internal/grpcwrapper/rawydb" 6 ) 7 8 func OperationParamsFromConfig(operationParams *rawydb.OperationParams, cfg *config.Common) { 9 operationParams.OperationMode = rawydb.OperationParamsModeSync 10 11 operationParams.OperationTimeout.Value = cfg.OperationTimeout() 12 operationParams.OperationTimeout.HasValue = operationParams.OperationTimeout.Value != 0 13 14 operationParams.CancelAfter.Value = cfg.OperationCancelAfter() 15 operationParams.CancelAfter.HasValue = operationParams.CancelAfter.Value != 0 16 }