(ctx context.Context, path string)
| 200 | } |
| 201 | |
| 202 | func (s *CacheHandler) cacheDiff(ctx context.Context, path string) (*cacheDiff, bool) { |
| 203 | log.Logger(ctx).Debug("Looking for cacheDiff for " + path) |
| 204 | if c, ok := s.getCtxCache(ctx).GetBytes(cacheDiffPrefix + path); ok { |
| 205 | var diff *cacheDiff |
| 206 | if ee := json.Unmarshal(c, &diff); ee == nil { |
| 207 | log.Logger(ctx).Debug("SyncCache cacheDiff for "+path, zap.Any("adds", diff.Adds), zap.Any("deletes", diff.Deletes)) |
| 208 | return diff, true |
| 209 | } |
| 210 | } |
| 211 | return nil, false |
| 212 | } |
| 213 | |
| 214 | func (s *CacheHandler) CreateNode(ctx context.Context, in *tree.CreateNodeRequest, opts ...grpc.CallOption) (*tree.CreateNodeResponse, error) { |
| 215 | r, e := s.Next.CreateNode(ctx, in, opts...) |
no test coverage detected