Skip to content

Commit

Permalink
accept interface{} for key argument in lmap.Put() instead of Value
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Sep 7, 2014
1 parent 3f3d607 commit 7162ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions large_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func (lm *LargeMap) packageName() string {
//
// name entry key
// value entry value
func (lm *LargeMap) Put(name Value, value interface{}) error {
_, err := lm.client.Execute(lm.policy, lm.key, lm.packageName(), "put", lm.binName, name, NewValue(value), lm.userModule)
func (lm *LargeMap) Put(name interface{}, value interface{}) error {
_, err := lm.client.Execute(lm.policy, lm.key, lm.packageName(), "put", lm.binName, NewValue(name), NewValue(value), lm.userModule)
return err
}

Expand Down

0 comments on commit 7162ea2

Please sign in to comment.