Skip to content
Snippets Groups Projects
  1. Jul 08, 2022
  2. Jul 07, 2022
  3. Jul 05, 2022
  4. Jun 27, 2022
  5. Jun 17, 2022
  6. Jun 15, 2022
  7. Jun 01, 2022
    • Sergey V's avatar
      feat: --cluster-id parameter · f8ac1dbe
      Sergey V authored
      * Make `--cluster-id` CLI mandatory.
      * Handle cluster_id mismatch in raft_join.
        When an instance attempts to join the cluster and the instances's
        `--instance-id` parameter mismatches the cluster_id of the cluster
        an error is raised inside the raft_join handler.
      f8ac1dbe
  8. May 26, 2022
  9. May 16, 2022
    • Yaroslav Dynnikov's avatar
      test: fix flaky args::tests · 18ccf158
      Yaroslav Dynnikov authored
      By default cargo runs tests in parallel in multiple threads.  Both
      `test_log_level` and `test_parse` access environment variables which are
      shared across threads. Consequently, their concurrent modification
      results in the test failure.
      
      This patch unites these two tests making it linear.
      18ccf158
  10. May 13, 2022
  11. Apr 27, 2022
  12. Apr 26, 2022
  13. Apr 24, 2022
    • Yaroslav Dynnikov's avatar
      chore: pleasure clippy · f15778cf
      Yaroslav Dynnikov authored
      ```console
      $ cargo clippy
         Compiling picodata v0.1.0 (/home/rosik/w/picodata)
      warning: 'tarantool-sys/patches-applied' exists, so patching step is
      skipped
      warning: single-character string constant used as pattern
         --> src/args.rs:194:47
          |
      194 |     let (host, port) = match text.rsplit_once(":") {
          |                                               ^^^ help: try using
      a `char` instead: `':'`
          |
          = note: `#[warn(clippy::single_char_pattern)]` on by default
          = help: for further information visit
      https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
      
      warning: called `cloned().next()` on an `Iterator`. It may be more
      efficient to call `next().cloned()` instead
         --> src/discovery.rs:154:27
          |
      154 |                 let res =
          peers.difference(&self.visited).cloned().next();
          |
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this:
      `peers.difference(&self.visited).next().cloned()`
          |
          = note: `#[warn(clippy::iter_overeager_cloned)]` on by default
          = help: for further information visit
      https://rust-lang.github.io/rust-clippy/master/index.html#iter_overeager_cloned
      
      warning: you seem to be trying to use `match` for destructuring a single
      pattern. Consider using `if let`
        --> src/ipc.rs:27:9
         |
      27 | /         match rmp_serde::encode::write(&mut self.fd, msg) {
      28 | |             Err(e) => tlog!(Error, "ipc error: {e}"),
      29 | |             Ok(()) => (),
      30 | |         }
         | |_________^ help: try this: `if let Err(e) =
      rmp_serde::encode::write(&mut self.fd, msg) { tlog!(Error, "ipc error:
      {e}") }`
         |
         = note: `#[warn(clippy::single_match)]` on by default
         = help: for further information visit
      https://rust-lang.github.io/rust-clippy/master/index.html#single_match
      
      warning: `picodata` (bin "picodata") generated 3 warnings
          Finished dev [unoptimized + debuginfo] target(s) in 1.41s
      ```
      f15778cf
  14. Apr 18, 2022
  15. Apr 14, 2022
  16. Mar 10, 2022
  17. Feb 22, 2022
  18. Feb 18, 2022
    • Georgy Moshkin's avatar
      build: static linking with tarantool · f77d1e5d
      Georgy Moshkin authored
      + tarantool-sys submodule
      + tarantool-patches directory
      + build.rs build script to patch and build tarantool
      + static linking with tarantool
      + refactoring for cli arguments
      f77d1e5d
Loading