diff options
Diffstat (limited to 'handlers.go')
| -rw-r--r-- | handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers.go b/handlers.go index b4668f8..2f07500 100644 --- a/handlers.go +++ b/handlers.go @@ -15,7 +15,7 @@ func handleGet(conn net.Conn, args []string) { key := args[1] - result := db.Execute(key, func(s *Shard) interface{}{ + result := db.ExecuteRead(key, func(s *Shard) interface{}{ item, exists := s.data[key] if !exists { return nil @@ -46,7 +46,7 @@ func handleExists(conn net.Conn, args []string) { } key := args[1] - result := db.Execute(key, func(s *Shard) interface{}{ + result := db.ExecuteRead(key, func(s *Shard) interface{}{ _, exists := s.data[key] if exists { return 1 |
