File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ use std::collections::HashMap;
16
16
17
17
use anyhow:: anyhow;
18
18
use async_nats:: jetstream:: context:: Context ;
19
- use async_nats:: jetstream:: stream:: Stream ;
20
19
use risingwave_common:: array:: StreamChunk ;
21
20
use risingwave_common:: buffer:: Bitmap ;
22
21
use risingwave_common:: catalog:: Schema ;
@@ -54,7 +53,6 @@ pub struct NatsSink {
54
53
pub struct NatsSinkWriter {
55
54
pub config : NatsConfig ,
56
55
context : Context ,
57
- stream : Stream ,
58
56
schema : Schema ,
59
57
}
60
58
@@ -118,15 +116,9 @@ impl NatsSinkWriter {
118
116
. build_context ( )
119
117
. await
120
118
. map_err ( |e| SinkError :: Nats ( anyhow_error ! ( "nats sink error: {:?}" , e) ) ) ?;
121
- let stream = config
122
- . common
123
- . build_or_get_stream ( context. clone ( ) )
124
- . await
125
- . map_err ( |e| SinkError :: Nats ( anyhow_error ! ( "nats sink error: {:?}" , e) ) ) ?;
126
119
Ok :: < _ , SinkError > ( Self {
127
120
config : config. clone ( ) ,
128
121
context,
129
- stream,
130
122
schema : schema. clone ( ) ,
131
123
} )
132
124
}
You can’t perform that action at this time.
0 commit comments