Skip to content

Commit

Permalink
update(bazel_dep): for freshness
Browse files Browse the repository at this point in the history
  • Loading branch information
grencez committed Sep 16, 2024
1 parent df3c4ba commit 13005d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
common --registry=https://raw.githubusercontent.com/rendezqueue/rendezqueue_bazel_registry/trunk
common --registry=https://raw.githubusercontent.com/grencez/tmp_bazel-central-registry/fildesh
common --registry=https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main
common --cxxopt=-std=c++17

Expand Down
14 changes: 5 additions & 9 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ module(
version = "0.0.0",
)

bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_license", version = "0.0.8")
bazel_dep(name = "rules_cc", version = "0.0.10")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "rules_proto", version = "6.0.2")
bazel_dep(
name = "abseil-cpp",
version = "20240116.2",
#version = "20240722.0",
repo_name = "com_google_absl",
)
bazel_dep(
Expand All @@ -19,14 +20,9 @@ bazel_dep(

bazel_dep(
name = "fildesh",
version = "0.1.9",
version = "0.2.0",
dev_dependency = True,
)
git_override(
module_name = "fildesh",
commit = "e9421ebbb546cf38bf2051d02fdc38dcf71f8216",
remote = "https://github.com/fildesh/fildesh.git",
)

bazel_dep(
name = "rules_sxproto",
Expand All @@ -35,6 +31,6 @@ bazel_dep(
)
git_override(
module_name = "rules_sxproto",
commit = "3b2c69cc8bc5e72b1da198551e16575a09513df9",
remote = "https://github.com/rendezqueue/rules_sxproto.git",
commit = "aa67dfd89684235fc884244714e0d87d77b63633", # TODO
)
6 changes: 4 additions & 2 deletions src/ccgrpc/asyncserver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ class ServerImpl final {
void* tag;
bool ok;
while (true) {
GPR_ASSERT(cq_->Next(&tag, &ok));
GPR_ASSERT(ok);
if (!cq_->Next(&tag, &ok) || !ok) {
std::cerr << "No more RPCs to handle?\n";
break;
}
auto& e = *static_cast<std::unique_ptr<TrySwapState>*>(tag);
if (e->processed) {
e.reset(nullptr);
Expand Down

0 comments on commit 13005d2

Please sign in to comment.