Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
number571 committed Oct 6, 2024
1 parent 44fa603 commit 293429c
Show file tree
Hide file tree
Showing 42 changed files with 15,572 additions and 16,337 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

*??? ??, ????*

### CHANGES

- Update `cmd/hidden_lake/helpers/traffic`: database now only store hashes, messages stores in memory
- Update `cmd/hidden_lake/helpers/traffic`: rename "storage_enabled" -> "database_enabled"

<!-- ... -->

## v1.6.20
Expand Down
2 changes: 1 addition & 1 deletion cmd/hidden_lake/_test/result/badge_coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26,438 changes: 12,885 additions & 13,553 deletions cmd/hidden_lake/_test/result/coverage.out

Large diffs are not rendered by default.

694 changes: 355 additions & 339 deletions cmd/hidden_lake/_test/result/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions cmd/hidden_lake/helpers/traffic/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type SConfigSettings struct {
FMessagesCapacity uint64 `json:"messages_capacity" yaml:"messages_capacity"`
FRandMessageSizeBytes uint64 `json:"rand_message_size_bytes,omitempty" yaml:"rand_message_size_bytes,omitempty"`
FNetworkKey string `json:"network_key,omitempty" yaml:"network_key,omitempty"`
FStorageEnabled bool `json:"storage_enabled,omitempty" yaml:"storage_enabled,omitempty"`
FDatabaseEnabled bool `json:"database_enabled,omitempty" yaml:"database_enabled,omitempty"`
}

type SConfig struct {
Expand Down Expand Up @@ -105,8 +105,8 @@ func (p *SConfigSettings) GetKeySizeBits() uint64 {
return p.FKeySizeBits
}

func (p *SConfigSettings) GetStorageEnabled() bool {
return p.FStorageEnabled
func (p *SConfigSettings) GetDatabaseEnabled() bool {
return p.FDatabaseEnabled
}

func (p *SConfig) isValid() bool {
Expand Down
2 changes: 1 addition & 1 deletion cmd/hidden_lake/helpers/traffic/internal/config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func InitConfig(cfgPath string, initCfg *SConfig) (IConfig, error) {
FWorkSizeBits: hls_settings.CDefaultWorkSizeBits,
FRandMessageSizeBytes: hls_settings.CDefaultRandMessageSizeBytes,
FMessagesCapacity: hlt_settings.CDefaultMessagesCapacity,
FStorageEnabled: hlt_settings.CDefaultStorageEnabled,
FDatabaseEnabled: hlt_settings.CDefaultDatabaseEnabled,
FNetworkKey: hls_settings.CDefaultNetworkKey,
},
FLogging: []string{logger.CLogInfo, logger.CLogWarn, logger.CLogErro},
Expand Down
2 changes: 1 addition & 1 deletion cmd/hidden_lake/helpers/traffic/internal/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type IConfigSettings interface {

GetMessagesCapacity() uint64
GetRandMessageSizeBytes() uint64
GetStorageEnabled() bool
GetDatabaseEnabled() bool
}

type IAddress interface {
Expand Down
161 changes: 0 additions & 161 deletions cmd/hidden_lake/helpers/traffic/internal/database/database.go

This file was deleted.

Loading

0 comments on commit 293429c

Please sign in to comment.