mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 12:34:44 +00:00
revert
This commit is contained in:
5
cache/handler/cache.go
vendored
5
cache/handler/cache.go
vendored
@@ -34,11 +34,6 @@ func (c *Cache) Get(ctx context.Context, req *pb.GetRequest, rsp *pb.GetResponse
|
||||
value = ""
|
||||
}
|
||||
|
||||
// set the default value if specified
|
||||
if value == nil && len(req.DefaultValue) > 0 {
|
||||
value = req.DefaultValue
|
||||
}
|
||||
|
||||
rsp.Key = req.Key
|
||||
// set the value
|
||||
rsp.Value = fmt.Sprintf("%v", value)
|
||||
|
||||
Reference in New Issue
Block a user