Commit Graph

65 Commits

Author SHA1 Message Date
bittoy
0a36031d48
use default mongo db (#103) 2020-09-28 16:35:07 +08:00
kevin
e5d7c3ab04 unmarshal should be struct 2020-09-28 15:19:30 +08:00
kevin
a958400595 rename prommetric to prometheous, add unit tests 2020-09-27 16:14:16 +08:00
kevin
015716d1b5 update wechat and etcd yaml 2020-09-27 14:15:33 +08:00
kevin
ff112fdaee query from cache first when do cache.Take 2020-09-26 21:58:46 +08:00
Zhang Hao
17a0908a84
add test (#95) 2020-09-22 19:15:30 +08:00
kevin
be9c48da7f add tracing logs in server side and client side 2020-09-22 17:34:39 +08:00
kevin
797a90ae7d remove unnecessary tag 2020-09-21 22:41:14 +08:00
kevin
92e60a5777 use options instead of opts in error message 2020-09-21 22:37:07 +08:00
dylanNew
3e7e466526
fix redis error (#88)
Co-authored-by: dylan <wangdi@xiaoheiban.cn>
2020-09-21 16:37:40 +08:00
kevin
86d3de4c89 use package level defined contextKey as context key 2020-09-20 12:46:35 +08:00
kevin
dc17855367 printing context key friendly 2020-09-20 12:08:30 +08:00
kevin
1606a92c6e use contextType as string type 2020-09-20 12:04:49 +08:00
mlboy
029fd3ea35
fix: golint: context.WithValue should should not use basic type as key (#83)
* fix: golint: context.WithValue should should not use basic type as key

* optimiz
2020-09-20 12:01:43 +08:00
Changkun Ou
762af9dda2
optimize AtomicError (#82)
This commit optimize AtomicError using atomic.Value. Benchmarks:

name               old time/op  new time/op  delta
AtomicError/Load-6   305ns ±11%    12ns ± 6%  -96.18%  (p=0.000 n=10+10)
AtomicError/Set-6   314ns ±16%    14ns ± 2%  -95.61%  (p=0.000 n=10+9)
2020-09-18 22:45:01 +08:00
kevin
f994e1df1a add more tests 2020-09-16 20:03:30 +08:00
kevin
df37597ac3 simplify mapreduce code 2020-09-16 16:48:59 +08:00
kevin
a50bcb90a6 rename function 2020-09-14 21:13:19 +08:00
kevin
a8fb010333 drain pipe if reducer not drained 2020-09-12 17:13:32 +08:00
kevin
1cb17311dd add unit test for mapreduce 2020-09-06 18:19:19 +08:00
kevin
e987eb60d3 fix mapreduce problem when reducer doesn't write 2020-09-06 18:13:42 +08:00
kevin
55c9c3f3dd replace clickhouse driver to the official one 2020-09-03 16:58:31 +08:00
kevin
5d8a3c07cd disable cpu stat in wsl linux 2020-08-27 13:22:44 +08:00
kevin
f3c367a323 add fatal to stderr 2020-08-25 16:59:14 +08:00
kevin
a32028c4fb add etcd deploy yaml 2020-08-25 16:32:01 +08:00
kevin
5e7b514ae2 make tests parallel 2020-08-21 23:15:45 +08:00
kevin
267a283328 reorg imports 2020-08-20 10:46:39 +08:00
kevin
e79c42add1 add go report badge 2020-08-19 16:10:43 +08:00
kevin
9e14820698 fix golint warnings 2020-08-19 16:00:55 +08:00
kevin
2ebb5b6b58 support customized mask char on trie 2020-08-19 14:54:59 +08:00
kevin
0214161bfc remove utils.Report 2020-08-17 18:05:56 +08:00
kevin
4b636cd293 refactor names 2020-08-16 23:08:29 +08:00
Klaus
4bdf5e4c90 chore: fix typo 2020-08-16 22:32:56 +08:00
kevin
8745039877 move lang.Must into logx.Must to make sure output fatal message as json 2020-08-14 15:08:06 +08:00
kevin
9d9399ad10 confirm addition after add called in periodical executor 2020-08-14 11:50:01 +08:00
kevin
e7dd04701c add more tests 2020-08-14 11:24:56 +08:00
kevin
a3d7474ae0 fix data race 2020-08-14 11:03:16 +08:00
kevin
6fdee77fa9 add queue package 2020-08-13 17:00:53 +08:00
kevin
87b1fba46c rename files 2020-08-12 15:03:07 +08:00
kevin
c57051ce63 use strings.Contains instead of strings.Index 2020-08-11 17:18:51 +08:00
kevin
82ea0fff17 disable logs in unit tests 2020-08-10 16:57:03 +08:00
kevin
a3b4affcb3 rename test method 2020-08-10 14:59:50 +08:00
kevin
6aa7a319c2 refactor compare versions 2020-08-10 14:53:01 +08:00
sunwei
4c9b481bdf 【rich function】VersionCompare replace 2020-08-10 14:06:59 +08:00
sunwei
e18ca9aac1 【rich function】VersionCompare replace 2020-08-10 14:06:59 +08:00
sunwei
945d59a980 【rich function】benchmark once function 2020-08-10 14:06:59 +08:00
sunwei
1104363988 【rich function】CustomVersionCompare append 2020-08-10 14:06:59 +08:00
kevin
0a7e0cce77 update package reference 2020-08-08 16:40:10 +08:00
kevin
bca56ef8c3 add tests 2020-08-07 15:28:40 +08:00
kevin
6503ae0610 remove files 2020-08-06 23:27:03 +08:00