Skip to content

Commit

Permalink
MINOR: proxy: add hash-type none
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwer authored and mjuraga committed Nov 27, 2023
1 parent 4ca669d commit 5bf4120
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion parsers/hash-type.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (p *HashType) Parse(line string, parts []string, comment string) (string, e
switch parts[index] {
case "map-based", "consistent":
data.Method = parts[index]
case "sdbm", "djb2", "wt6", "crc32":
case "sdbm", "djb2", "wt6", "crc32", "none":
data.Function = parts[index]
case "avalanche":
data.Modifier = parts[index]
Expand Down
1 change: 1 addition & 0 deletions tests/hash-type_generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions tests/integration/backend_data_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/integration/backend_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions tests/integration/defaults_data_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/integration/defaults_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ type Group struct {
//test:ok:hash-type consistent djb2 avalanche
//test:ok:hash-type consistent wt6 avalanche
//test:ok:hash-type consistent crc32 avalanche
//test:ok:hash-type consistent none
//test:fail:hash-type
type HashType struct {
Method string
Expand Down

0 comments on commit 5bf4120

Please sign in to comment.