Skip to content

Commit fa70111

Browse files
committed
reverting changes
Signed-off-by: Ankur_Anand <Ankur.Anand@dell.com>
1 parent 91ce6a0 commit fa70111

File tree

5 files changed

+2
-8
lines changed

5 files changed

+2
-8
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ default = ["python_binding"]
2020
javascript_binding = ["wasm-bindgen"]
2121
python_binding = ["pyo3", "pyo3-asyncio"]
2222

23-
2423
#Run tests for bindings using command cargo test --no-default-features
2524

2625
[dependencies]
@@ -42,7 +41,6 @@ derive-new = "0.5"
4241
#Python bindings
4342
pyo3 = { version = "0.14.5" ,optional = true }
4443
pyo3-asyncio = { version = "0.14", features = ["tokio-runtime"], optional = true }
45-
pyo3-log = "0.9.0"
4644
#WASM bindings
4745
wasm-bindgen = { version = "0.2.63", optional = true }
4846
cfg-if = "1.0.0"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ cfg_if! {
4848
#[pymodule]
4949
/// A Python module for Pravega implemented in Rust.
5050
fn pravega_client(py: Python, m: &PyModule) -> PyResult<()> {
51-
let _log = pyo3_log::init();
51+
let _ = tracing_subscriber::fmt::try_init();
5252
m.add_class::<StreamManager>()?;
5353
m.add_class::<StreamWriter>()?;
5454
m.add_class::<StreamTxnWriter>()?;

tests/pravega_client_test.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,6 @@ def test_byteStream(self):
190190
except Exception as e:
191191
print("Exception ", e)
192192

193-
194-
195-
196193
def test_writeTxn(self):
197194
scope = ''.join(secrets.choice(string.ascii_lowercase + string.digits)
198195
for i in range(10))

tests/pravega_reader_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ async def test_writeEventAndRead(self):
4747
w1.flush()
4848
# Create a reader Group Configuration to read from HEAD of stream.
4949
rg_config = pravega_client.StreamReaderGroupConfig(False, scope, stream)
50-
5150
reader_group=stream_manager.create_reader_group_with_config("rg" + suffix, scope, rg_config)
5251
r1 = reader_group.create_reader("reader-1")
5352
segment_slice = await r1.get_segment_slice_async()

tests/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async def test_writeEventAndRead():
99
scope = "testRead"
1010
stream = "testStream" + suffix
1111
print("Creating a Stream Manager, ensure Pravega is running")
12-
stream_manager = pravega_client.StreamManager("tcp://127.0.0.1:9090")
12+
stream_manager = pravega_client.StreamManager("127.0.0.1:9090")
1313

1414
print("Creating a scope")
1515
scope_result = stream_manager.create_scope(scope)

0 commit comments

Comments
 (0)