Skip to content

Commit d70715f

Browse files
committed
Rebase fixes
1 parent 1bc639c commit d70715f

14 files changed

Lines changed: 27 additions & 27 deletions

File tree

client/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ use temporal_sdk_core_protos::{
7171
},
7272
};
7373
use tonic::{
74-
Code, Status,
74+
Code,
7575
body::BoxBody,
7676
client::GrpcService,
7777
codegen::InterceptedService,

client/src/retry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{
2-
Client, IsWorkerTaskLongPoll, NamespacedClient, NoRetryOnMatching, Result,
3-
RetryConfig, raw::IsUserLongPoll,
2+
Client, IsWorkerTaskLongPoll, NamespacedClient, NoRetryOnMatching, Result, RetryConfig,
3+
raw::IsUserLongPoll,
44
};
55
use backoff::{Clock, SystemClock, backoff::Backoff, exponential::ExponentialBackoff};
66
use futures_retry::{ErrorHandler, FutureRetry, RetryPolicy};

core/src/abstractions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use crate::MetricsContext;
66
use std::{
77
fmt::{Debug, Formatter},
88
sync::{
9-
atomic::{AtomicBool, AtomicUsize, Ordering},
109
Arc, OnceLock,
10+
atomic::{AtomicBool, AtomicUsize, Ordering},
1111
},
1212
time::Instant,
1313
};

core/src/core_tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::{
1717
};
1818
use futures_util::FutureExt;
1919
use std::{sync::LazyLock, time::Duration};
20-
use temporal_sdk_core_api::{worker::PollerBehavior, Worker as WorkerTrait};
20+
use temporal_sdk_core_api::{Worker as WorkerTrait, worker::PollerBehavior};
2121
use temporal_sdk_core_protos::coresdk::workflow_completion::WorkflowActivationCompletion;
2222
use tokio::{sync::Barrier, time::sleep};
2323

core/src/core_tests/workers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::{
1414
};
1515
use futures_util::{stream, stream::StreamExt};
1616
use std::{cell::RefCell, time::Duration};
17-
use temporal_sdk_core_api::{worker::PollerBehavior, Worker};
17+
use temporal_sdk_core_api::{Worker, worker::PollerBehavior};
1818
use temporal_sdk_core_protos::{
1919
coresdk::{
2020
workflow_activation::workflow_activation_job,

core/src/pollers/poll_buffer.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::{
33
pollers::{self, Poller},
44
worker::client::{PollActivityOptions, PollOptions, PollWorkflowOptions, WorkerClient},
55
};
6-
use futures_util::{FutureExt, StreamExt, future::BoxFuture, stream::FuturesUnordered};
6+
use futures_util::{FutureExt, StreamExt, future::BoxFuture};
77
use governor::{Quota, RateLimiter};
88
use std::{
99
cmp,
@@ -29,6 +29,7 @@ use tokio::{
2929
sync::{
3030
Mutex, broadcast,
3131
mpsc::{UnboundedReceiver, unbounded_channel},
32+
watch,
3233
},
3334
task::JoinHandle,
3435
};
@@ -292,7 +293,7 @@ where
292293
.await
293294
.expect("Poll allow does not panic");
294295
}
295-
async fn wait_until_allowed(&mut self) -> ActiveCounter<impl Fn(usize)> {
296+
async fn wait_until_allowed(&mut self) -> ActiveCounter<impl Fn(usize) + use<F>> {
296297
self.active_rx
297298
.wait_for(|v| {
298299
*v < self.report_handle.max

core/src/test_help/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use std::{
3131
time::Duration,
3232
};
3333
use temporal_sdk::interceptors::FailOnNondeterminismInterceptor;
34-
use temporal_sdk_core_api::{errors::PollError, worker::PollerBehavior, Worker as WorkerTrait};
34+
use temporal_sdk_core_api::{Worker as WorkerTrait, errors::PollError, worker::PollerBehavior};
3535
use temporal_sdk_core_protos::{
3636
coresdk::{
3737
workflow_activation::{WorkflowActivation, workflow_activation_job},

core/src/worker/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ use temporal_sdk_core_protos::{
6666
ActivityTaskCompletion,
6767
activity_result::activity_execution_result,
6868
activity_task::ActivityTask,
69-
nexus::{nexus_task_completion, NexusTask, NexusTaskCompletion},
69+
nexus::{NexusTask, NexusTaskCompletion, nexus_task_completion},
7070
workflow_activation::{WorkflowActivation, remove_from_cache::EvictionReason},
7171
workflow_completion::WorkflowActivationCompletion,
7272
},

core/src/worker/workflow/machines/transition_coverage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use dashmap::{DashMap, DashSet, mapref::entry::Entry};
77
use std::{
88
path::PathBuf,
99
sync::{
10-
Mutex,
10+
LazyLock, Mutex,
1111
mpsc::{SyncSender, sync_channel},
1212
},
1313
thread::JoinHandle,

test-utils/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ use temporal_sdk_core_api::{
4242
errors::PollError,
4343
telemetry::{
4444
Logger, OtelCollectorOptionsBuilder, PrometheusExporterOptions,
45-
PrometheusExporterOptionsBuilder, TelemetryOptions,
46-
TelemetryOptionsBuilder, metrics::CoreMeter,
45+
PrometheusExporterOptionsBuilder, TelemetryOptions, TelemetryOptionsBuilder,
46+
metrics::CoreMeter,
4747
},
4848
};
4949
use temporal_sdk_core_protos::{

0 commit comments

Comments
 (0)