Skip to content

Commit

Permalink
feat: use inner message (#932)
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Chen <[email protected]>
  • Loading branch information
shanicky authored and pangzhenzhou committed Mar 28, 2022
1 parent 47d5137 commit 1f1db46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/connector/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//
use std::collections::HashMap;

use anyhow::{anyhow, Result};
Expand Down Expand Up @@ -48,7 +48,7 @@ pub trait SourceSplit {
}

#[async_trait]
pub trait SourceReader {
pub trait SourceReader: Sized {
async fn next(&mut self) -> Result<Option<Vec<InnerMessage>>>;
async fn assign_split<'a>(&'a mut self, split: &'a [u8]) -> Result<()>;
}
Expand Down

0 comments on commit 1f1db46

Please sign in to comment.