(ctx context.Context, in *tree.CreateNodeRequest, opts ...grpc.CallOption)
| 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...) |
| 216 | if nodes.IsFlatStorage(ctx, "in") { |
| 217 | return r, e |
| 218 | } |
| 219 | if e == nil { |
| 220 | s.cacheAdd(ctx, r.GetNode()) |
| 221 | } |
| 222 | return r, e |
| 223 | } |
| 224 | |
| 225 | func (s *CacheHandler) DeleteNode(ctx context.Context, in *tree.DeleteNodeRequest, opts ...grpc.CallOption) (*tree.DeleteNodeResponse, error) { |
| 226 | r, e := s.Next.DeleteNode(ctx, in, opts...) |
nothing calls this directly
no test coverage detected