Skip to content

Commit fc3b597

Browse files
committed
Fix formatting.
1 parent 1b74740 commit fc3b597

File tree

6 files changed

+14
-15
lines changed

6 files changed

+14
-15
lines changed

Diff for: examples/appending_events.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
#![allow(unused_results)]
44
#![allow(unused_variables)]
55

6+
use futures::TryStreamExt;
67
use kurrent::{
78
AppendToStreamOptions, Client, Credentials, EventData, ExpectedRevision, ReadStreamOptions,
89
StreamPosition,
910
};
10-
use futures::TryStreamExt;
1111
use serde::{Deserialize, Serialize};
1212
use std::error::Error;
1313
use uuid::Uuid;

Diff for: examples/server_side_filtering.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
#![allow(unused_variables)]
55
#![allow(unreachable_code)]
66

7+
use futures::TryStreamExt;
78
use kurrent::{
89
Client, Credentials, EventData, ExpectedRevision, SubscribeToAllOptions, SubscriptionEvent,
910
SubscriptionFilter,
1011
};
11-
use futures::TryStreamExt;
1212
use serde::{Deserialize, Serialize};
1313
use std::error::Error;
1414
use uuid::Uuid;

Diff for: examples/subscribing_to_stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
#![allow(unused_variables)]
66
#![allow(unreachable_code)]
77

8+
use futures::TryStreamExt;
89
use kurrent::{
910
Client, Credentials, EventData, ExpectedRevision, Position, RetryOptions, StreamPosition,
1011
SubscribeToAllOptions, SubscribeToStreamOptions, SubscriptionEvent, SubscriptionFilter,
1112
};
12-
use futures::TryStreamExt;
1313
use serde::{Deserialize, Serialize};
1414
use std::error::Error;
1515
use uuid::Uuid;

Diff for: kurrent/src/grpc.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,10 @@ impl GrpcClient {
11641164

11651165
pub(crate) fn handle_error(sender: &UnboundedSender<Msg>, connection_id: Uuid, err: &crate::Error) {
11661166
if let crate::Error::ServerError(ref status) = err {
1167-
error!("Current selected KurrentDB node gone unavailable. Starting node selection process: {}", status);
1167+
error!(
1168+
"Current selected KurrentDB node gone unavailable. Starting node selection process: {}",
1169+
status
1170+
);
11681171

11691172
let _ = sender.send(Msg::CreateChannel(connection_id, None));
11701173
} else if let crate::Error::NotLeaderException(ref leader) = err {

Diff for: kurrent/tests/api/streams.rs

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use crate::common::{fresh_stream_id, generate_events};
22
use chrono::{Datelike, Utc};
3+
use futures::channel::oneshot;
34
use kurrent::{
45
Acl, Client, ReadEvent, StreamAclBuilder, StreamMetadataBuilder, StreamMetadataResult,
56
StreamName, StreamPosition, SubscriptionEvent,
67
};
7-
use futures::channel::oneshot;
88
use std::collections::HashMap;
99
use std::time::Duration;
1010

@@ -258,8 +258,8 @@ async fn test_subscription(client: &Client) -> eyre::Result<()> {
258258
.append_to_stream(stream_id.as_str(), &Default::default(), events_before)
259259
.await?;
260260

261-
let options = kurrent::SubscribeToStreamOptions::default()
262-
.start_from(kurrent::StreamPosition::Start);
261+
let options =
262+
kurrent::SubscribeToStreamOptions::default().start_from(kurrent::StreamPosition::Start);
263263

264264
let mut sub = client
265265
.subscribe_to_stream(stream_id.as_str(), &options)
@@ -321,8 +321,8 @@ async fn test_subscription_caughtup(client: &Client) -> kurrent::Result<()> {
321321
.append_to_stream(stream_id.clone(), &Default::default(), events)
322322
.await?;
323323

324-
let options = kurrent::SubscribeToStreamOptions::default()
325-
.start_from(kurrent::StreamPosition::Start);
324+
let options =
325+
kurrent::SubscribeToStreamOptions::default().start_from(kurrent::StreamPosition::Start);
326326

327327
let mut sub = client
328328
.subscribe_to_stream(stream_id.clone(), &options)
@@ -382,11 +382,7 @@ async fn test_batch_append(client: &Client) -> kurrent::Result<()> {
382382
let stream_id = fresh_stream_id("batch-append");
383383
let events = generate_events("batch-append-type", 3);
384384
let _ = batch_client
385-
.append_to_stream(
386-
stream_id.as_str(),
387-
kurrent::ExpectedRevision::Any,
388-
events,
389-
)
385+
.append_to_stream(stream_id.as_str(), kurrent::ExpectedRevision::Any, events)
390386
.await?;
391387
let options = kurrent::ReadStreamOptions::default()
392388
.forwards()

Diff for: kurrent/tests/integration.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ mod common;
66
mod images;
77

88
use crate::common::{fresh_stream_id, generate_events};
9-
use kurrent::{Client, ClientSettings};
109
use futures::channel::oneshot;
10+
use kurrent::{Client, ClientSettings};
1111
use std::time::Duration;
1212
use testcontainers::clients::Cli;
1313
use testcontainers::core::RunnableImage;

0 commit comments

Comments
 (0)