mirror of
https://github.com/elyby/chrly.git
synced 2024-12-02 19:51:23 +05:30
Merge branch 'master' into ely
This commit is contained in:
commit
2775b14e78
@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased] - xxxx-xx-xx
|
||||||
|
|
||||||
|
## [4.2.2] - 2019-06-19
|
||||||
|
### Fixed
|
||||||
|
- GC for in-memory textures cache has not been initialized.
|
||||||
|
|
||||||
## [4.2.1] - 2019-05-06
|
## [4.2.1] - 2019-05-06
|
||||||
### Changed
|
### Changed
|
||||||
@ -57,6 +61,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
from the textures link instead.
|
from the textures link instead.
|
||||||
- `hash` field from `POST /api/skins` endpoint.
|
- `hash` field from `POST /api/skins` endpoint.
|
||||||
|
|
||||||
[Unreleased]: https://github.com/elyby/chrly/compare/4.2.1...HEAD
|
[Unreleased]: https://github.com/elyby/chrly/compare/4.2.2...HEAD
|
||||||
|
[4.2.2]: https://github.com/elyby/chrly/compare/4.2.1...4.2.2
|
||||||
[4.2.1]: https://github.com/elyby/chrly/compare/4.2.0...4.2.1
|
[4.2.1]: https://github.com/elyby/chrly/compare/4.2.0...4.2.1
|
||||||
[4.2.0]: https://github.com/elyby/chrly/compare/4.1.1...4.2.0
|
[4.2.0]: https://github.com/elyby/chrly/compare/4.1.1...4.2.0
|
||||||
|
@ -25,9 +25,11 @@ type inMemoryTexturesStorage struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CreateInMemoryTexturesStorage() *inMemoryTexturesStorage {
|
func CreateInMemoryTexturesStorage() *inMemoryTexturesStorage {
|
||||||
return &inMemoryTexturesStorage{
|
storage := &inMemoryTexturesStorage{
|
||||||
data: make(map[string]*inMemoryItem),
|
data: make(map[string]*inMemoryItem),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return storage
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *inMemoryTexturesStorage) Start() {
|
func (s *inMemoryTexturesStorage) Start() {
|
||||||
|
@ -51,11 +51,13 @@ var serveCmd = &cobra.Command{
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
texturesStorage := queue.CreateInMemoryTexturesStorage()
|
||||||
|
texturesStorage.Start()
|
||||||
mojangTexturesQueue := &queue.JobsQueue{
|
mojangTexturesQueue := &queue.JobsQueue{
|
||||||
Logger: logger,
|
Logger: logger,
|
||||||
Storage: &queue.SplittedStorage{
|
Storage: &queue.SplittedStorage{
|
||||||
UuidsStorage: mojangUuidsRepository,
|
UuidsStorage: mojangUuidsRepository,
|
||||||
TexturesStorage: queue.CreateInMemoryTexturesStorage(),
|
TexturesStorage: texturesStorage,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
logger.Info("Mojang's textures queue is successfully initialized")
|
logger.Info("Mojang's textures queue is successfully initialized")
|
||||||
|
Loading…
Reference in New Issue
Block a user