Skip to content

chore: Bump ver: v0.2.0 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/commit-message-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ jobs:
excludeDescription: 'true' # optional: this excludes the description body of a pull request
excludeTitle: 'true' # optional: this excludes the title of a pull request
accessToken: ${{ secrets.GITHUB_TOKEN }}
pattern: '^(DataChange:|Change:|Feature:|Improve:|Perf:|Dep:|Doc:|Test:|CI:|Refactor:|Fix:|Fixdoc:|Fixup:|Merge|BumpVer:|Chore:|fix:|feat:|perf:|refactor:|test:|docs:|deps:|chore:|ci:|Build\(deps\):) .+$'
pattern: '^(DataChange:|Change:|change:|Feature:|Improve:|Perf:|Dep:|Doc:|Test:|CI:|Refactor:|Fix:|Fixdoc:|Fixup:|Merge|BumpVer:|Chore:|fix:|feat:|perf:|refactor:|test:|docs:|deps:|chore:|ci:|Build\(deps\):) .+$'
flags: 'gm'
error: |
Subject line has to contain a commit type, e.g.: "Change: blabla" or a merge commit e.g.: "Merge xxx".
Valid types are:
DataChange - Persistent data change
Change - API breaking change
change - API breaking change
Feature - API compatible new feature
feat - API compatible new feature
Improve - Become better without functional changes
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "watcher"
description = "subscribe data changes"
version = "0.1.2"
version = "0.2.0"
authors = ["Databend Authors <opensource@datafuselabs.com>"]
license = "Apache-2.0"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion src/dispatch/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ where C: TypeConfig

for sender in self.watchers.get(&kv_change.0) {
debug!(
"watch-event-Dispatcher: dispatch event to watcher {:?}, kv_change: {:?}",
"watch-event-Dispatcher: dispatch event to watcher {}, kv_change: {:?}",
sender, kv_change
);
let interested = sender.desc.interested;
Expand Down
3 changes: 2 additions & 1 deletion src/type_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

use std::error::Error;
use std::fmt::Debug;
use std::fmt::Display;
use std::future::Future;
use std::io;

Expand Down Expand Up @@ -55,7 +56,7 @@ pub trait TypeConfig
where Self: Debug + Clone + Copy + Sized + 'static
{
/// The type of keys that are watched.
type Key: Debug + Clone + Ord + Send + Sync + 'static;
type Key: Debug + Display + Clone + Ord + Send + Sync + 'static;

/// The type of values that are watched.
type Value: Debug + Clone + Send + Sync + 'static;
Expand Down
Loading