wu aoxiang
wu aoxiang
same problem occur on my jenkins CI, my solution is clean up jenkins docker cache and wip out workspace(.docker/cache), then build again would success
@GopherJ actix-redis publish example ```rust use actix::Addr; use redis_async::resp_array; use actix_redis::{Command, RedisActor}; use actix_web::{middleware, web, App, HttpResponse, HttpServer}; #[actix_web::get("/")] async fn cache_stuff( redis: web::Data ) -> HttpResponse { let datetime_now:...
@GopherJ I guess there is no redis sub/pub API in actix-redis. actix-redis depend on redis-async, you can check out pubsub example in [redis-async/examples/pubsub.rs](https://github.com/benashford/redis-async-rs/blob/master/examples/pubsub.rs)
Send 'AUTH' command to redis server after connect ```rust let redis = actix_redis::RedisActor::start("redis://localhost:6379"); // or redis.send(...).await redis.do_send(actix_redis::Command(resp_array![ "AUTH", "password" ])); ``` actix-redis use redis-async crate internal [how to connect redis...
Here is my **dirty way** to write local timezone datetime. ```rust // Assume local timezone is +08:00 // FIXME Local+naive_local()=+16 timezone!!! let datetime = chrono::Local::now().naive_local(); sqlx::query("INSERT INTO trades (created_at) VALUES...
``` [w@ww ~]$ gdb /var/lib/systemd/coredump/core.TabNine-deep-lo.1000.3289c7224f5b4f539d0e6ffd24bf05b2.3190.1638524494000000.zst ^C [w@ww ~]$ coredumpctl debug PID: 3190 (TabNine-deep-lo) UID: 1000 (w) GID: 1001 (w) Signal: 11 (SEGV) Timestamp: Fri 2021-12-03 17:41:34 CST (17h ago) Command...
> cat /home/w/.config/TabNine/tabnine_config.json ```json { "version": "3.4.25", "hide_promotional_message": false, "beta_enabled": "No", "ignore_all_lsp": false, "creation_time": "2021-06-08T05:06:42.689101568Z", "guuid": "db5eee8c9e6617e99498bbf1ed2147af32f53d310c6924b13b2119fbfa2c4ea5", "semantic_status": {}, "enable_telemetry": true, "user_understands_that_enabling_tabnine_cloud_sends_code_to_tabnine_servers": true, "hosted_deep_completions_enabled": "Disabled", "tabnine_cloud_host": null, "tabnine_cloud_certificate_domain": null, "tabnine_cloud_port":...
my CPU is x86_64 ``` OS: Manjaro 21.2.0 Qonos Kernel: x86_64 Linux 5.13.19-2-MANJARO Uptime: 6d 2h 38m Packages: 1371 Shell: bash 5.1.8 Resolution: 1920x1080 DE: KDE 5.88.0 / Plasma 5.23.3...
The `std::arch::x86_64::_mm_crc32_u64` function is not found on ARM https://github.com/tensorbase/tensorbase/blob/7b3722723c6e01cb9b90b117b1be96ad7d419bdc/crates/base/src/hash.rs#L12-L16
希望能加上std::lazy::OnceCell的介绍,以及std::lazy::SyncOnceCell是如何保证多线程安全的。 我看OnceCell文档上说lazy_static好像用的是spinlock去避免多线程的Data Race,那么OnceCell自己又是如何实现线程安全就值得去学习下