aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sync
Commit message (Collapse)AuthorAgeFilesLines
* Implement FSFE REUSE for golang files (#21840)flynnnnnnnnnn2022-11-273-6/+3
| | | | | | | | | Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Add generic set type (#21408)KN4CK3R2022-10-121-11/+10
| | | | | This PR adds a generic set type to get rid of maps used as sets. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Use queue instead of memory queue in webhook send service (#19390)Lunny Xiao2022-04-251-104/+0
|
* Remove legacy `unknwon/com` package (#19298)wxiaoguang2022-04-021-14/+11
| | | | | | | Follows: #19284 * The `CopyDir` is only used inside test code * Rewrite `ToSnakeCase` with more test cases * The `RedisCacher` only put strings into cache, here we use internal `toStr` to replace the legacy `ToStr` * The `UniqueQueue` can use string as ID directly, no need to call `ToStr`
* Refactor legacy `unknwon/com` package, improve golangci lint (#19284)wxiaoguang2022-04-011-6/+4
| | | | | | | | The main purpose is to refactor the legacy `unknwon/com` package. 1. Remove most imports of `unknwon/com`, only `util/legacy.go` imports the legacy `unknwon/com` 2. Use golangci's depguard to process denied packages 3. Fix some incorrect values in golangci.yml, eg, the version should be quoted string `"1.18"` 4. Use correctly escaped content for `go-import` and `go-source` meta tags 5. Refactor `com.Expand` to our stable (and the same fast) `vars.Expand`, our `vars.Expand` can still return partially rendered content even if the template is not good (eg: key mistach).
* Fix missing unlock in uniquequeue (#9790)zeripath2020-01-151-0/+1
|
* Graceful: Xorm, RepoIndexer, Cron and Others (#9282)zeripath2019-12-151-9/+47
| | | | | | | | | | | | * Change graceful to use a singleton obtained through GetManager instead of a global. * Graceful: Make TestPullRequests shutdownable * Graceful: Make the cron tasks graceful * Graceful: AddTestPullRequest run in graceful ctx * Graceful: SyncMirrors shutdown * Graceful: SetDefaultContext for Xorm to be HammerContext * Avoid starting graceful for migrate commands and checkout * Graceful: DeliverHooks now can be shutdown * Fix multiple syncing errors in modules/sync/UniqueQueue & Make UniqueQueue closable * Begin the process of making the repo indexer shutdown gracefully
* Use gitea forked macaron (#7933)Tamal Saha2019-08-231-1/+1
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* Fix status table race condition (#1835)Ethan Koenig2017-05-312-0/+21
|
* Fix typos in models/ and modules/ (#1248)Ethan Koenig2017-03-152-2/+2
|
* Add missing copyright header to status table test (#902)Andrew2017-02-111-0/+4
|
* Improve status table implementation (#879)Andrew2017-02-093-12/+29
| | | | | | | | * Remove superfluous defer calls * Improve status table implementation as well This would probably only help with large, high-traffic installs
* modules/sync: add UniqueQueueUnknwon2016-08-301-0/+70
|
* modules/sync: rename SingleInstancePool to ExclusivePoolUnknwon2016-08-301-9/+10
|
* Minor naming improvementUnknwon2016-08-171-0/+2
|
* modules/sync: move sync objects to independent moduleUnknwon2016-08-142-0/+116