Commit Graph

46 Commits

Author SHA1 Message Date
qiying.wang
148afcf1a7 chore: remove redundant prefix of "error: " in error creation 2023-03-02 12:46:19 +00:00
Kevin Wan
ae87114282
chore: change interface{} to any (#2818)
* chore: change interface{} to any

* chore: update goctl version to 1.5.0

* chore: update goctl deps
2023-01-24 16:32:02 +08:00
Kevin Wan
6d129e0264
chore: add more tests (#2797)
* chore: add more tests

* chore: add more tests

* chore: add more tests
2023-01-16 22:33:39 +08:00
Ofey Chan
82c642d3f4
feat: expose NewTimingWheelWithClock (#2787) 2023-01-13 17:46:40 +08:00
Archer
f4fd735aee
Use read-write lock instead of mutex (#2727) 2022-12-26 15:00:47 +08:00
王哈哈
dac3600b53
Modify comment syntax error (#2572) 2022-11-04 21:55:17 +08:00
Kevin Wan
813625d995
refactor: sequential range over safemap (#2316) 2022-08-28 17:16:31 +08:00
李平平
15a2802f12
safemap add Range method (#2314) 2022-08-28 16:51:45 +08:00
safeoy
3f3c811e08
fix: fix comment typo (#2220)
Use an instead of 'a' if the following word starts with a vowel sound, e.g. 'an in-memory cache'.
2022-08-03 23:57:49 +08:00
Kevin Wan
5d4e7c84ee
revert postgres package refactor (#1796)
* Revert "refactor: move postgres to pg package (#1781)"

This reverts commit ba8ac974aa.

* remove pg, use postgres
2022-04-17 12:07:48 +08:00
Kevin Wan
ba8ac974aa
refactor: move postgres to pg package (#1781) 2022-04-13 12:46:09 +08:00
Kevin Wan
8bc34defc4
chore: avoid deadlock after stopping TimingWheel (#1768) 2022-04-07 11:50:18 +08:00
Kevin Wan
4e48286838
chore: add doc (#1764) 2022-04-06 22:42:40 +08:00
Kevin Wan
8472415472
fix #1754 (#1757) 2022-04-04 22:13:08 +08:00
ccx
86d01e2e99
test: add testcase for FIFO Queue in collection module (#1589)
cover the case of non-zero value for q.Header when q.Elements expands
2022-02-28 17:15:11 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 2022-01-04 15:51:32 +08:00
Kevin Wan
5cc9eb0de4
rename sharedcalls to singleflight (#1017) 2021-09-09 18:06:27 +08:00
aaffo
598fda0c97
optimized (#819) 2021-07-15 23:50:44 +08:00
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool (#697)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-18 14:43:09 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. (#628) 2021-04-15 19:49:17 +08:00
Kevin Wan
457048bfac
fix golint issues in core/collection, refine cache interface (#475) 2021-02-18 15:49:56 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks (#457) 2021-02-09 13:50:21 +08:00
Kevin Wan
b88ba14597
fixes issue #425 (#438) 2021-02-05 13:32:56 +08:00
理工男
7b3c3de35e
ring struct add lock (#434)
Co-authored-by: liuhuan210 <liuhuan210@jd.com>
2021-02-03 21:41:10 +08:00
Kevin Wan
57b73d8b49
make sure offset less than size even it's checked inside (#354) 2021-01-05 16:06:36 +08:00
Kevin Wan
a79cee12ee
add godoc for RollingWindow (#351) 2021-01-04 22:43:55 +08:00
zjbztianya
7a921f66e6
simple rolling windows code (#346) 2021-01-04 22:11:18 +08:00
Kevin Wan
0786862a35
align bucket boundary to interval in rolling window (#345) 2021-01-04 11:17:59 +08:00
Kevin Wan
771371e051
simplify rolling window code, and make tests run faster (#343) 2021-01-03 20:47:29 +08:00
zjbztianya
2ee95f8981
fix rolling window bug (#340) 2021-01-03 20:27:47 +08:00
benying
7d1b43780a
some optimize by kevwan and benying (#240)
Co-authored-by: 杨志泉 <zhiquan.yang@yiducloud.cn>
2020-12-01 06:44:32 +08:00
Kevin Wan
4b5c2de376
simplify code (#234)
* simplify code, format makefile

* simplify code
2020-11-29 12:41:42 +08:00
Kevin Wan
e5c560e8ba
simplify code, format makefile (#233) 2020-11-28 22:27:58 +08:00
xuezonggui
bed494d904
optimization (#221) 2020-11-28 19:43:39 +08:00
kevin
295c8d2934 fix issue #205 2020-11-16 19:23:24 +08:00
kevin
fe3739b7f3 fix golint issues 2020-10-16 11:13:55 +08:00
kevin
94645481b1 fix golint issues 2020-10-16 10:50:43 +08:00
kevin
8291eabc2c assert len > 0 2020-10-15 14:25:10 +08:00
kevin
c824e9e118 fail fast when rolling window size is zero 2020-10-15 11:40:31 +08:00
kevin
6749c5b94a add more tests 2020-10-04 17:52:54 +08:00
kevin
a958400595 rename prommetric to prometheous, add unit tests 2020-09-27 16:14:16 +08:00
kevin
ff112fdaee query from cache first when do cache.Take 2020-09-26 21:58:46 +08:00
kevin
5e7b514ae2 make tests parallel 2020-08-21 23:15:45 +08:00
kevin
9e14820698 fix golint warnings 2020-08-19 16:00:55 +08:00
kevin
0a7e0cce77 update package reference 2020-08-08 16:40:10 +08:00
kevin
7e3a369a8f initial import 2020-07-26 17:09:05 +08:00