Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Aug 2, 2023
1 parent a90e02a commit 52558ca
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 544 deletions.
9 changes: 0 additions & 9 deletions pkg/keyspace/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,6 @@ func validateName(name string) error {
return nil
}

// keyspaceIDHash is used to hash the spaceID inside the lockGroup.
// A simple mask is applied to spaceID to use its last byte as map key,
// limiting the maximum map length to 256.
// Since keyspaceID is sequentially allocated, this can also reduce the chance
// of collision when comparing with random hashes.
func keyspaceIDHash(id uint32) uint32 {
return id & 0xFF
}

// makeKeyRanges encodes keyspace ID to correct LabelRule data.
// For a keyspace with id ['a', 'b', 'c'], it has four boundaries:
//
Expand Down
2 changes: 1 addition & 1 deletion pkg/mcs/discovery/registry_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

// ServiceRegistryEntry is the registry entry of a service
type ServiceRegistryEntry struct {
ServiceAddr string `json:"serviceAddr"`
ServiceAddr string `json:"service-addr"`
}

// Serialize this service registry entry
Expand Down
Loading

0 comments on commit 52558ca

Please sign in to comment.