summaryrefslogtreecommitdiff
path: root/src/file-backend.lisp
diff options
context:
space:
mode:
authorPiotr Szarmanski2023-08-03 21:54:17 +0200
committerPiotr Szarmanski2023-08-03 21:54:17 +0200
commit4bbfb31292e049cd6a09301968bd21271afaacc9 (patch)
tree173a2f8284efa083d96d145dd2862fc8b88b8892 /src/file-backend.lisp
parent6419e069baa00627670154d20e1bd077658fbe9e (diff)
Add default method to fetch-data and store-data, remove redundant methods.
Diffstat (limited to 'src/file-backend.lisp')
-rw-r--r--src/file-backend.lisp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/file-backend.lisp b/src/file-backend.lisp
index 1a1c5b0..6174cf7 100644
--- a/src/file-backend.lisp
+++ b/src/file-backend.lisp
@@ -54,21 +54,3 @@
(alexandria:write-byte-vector-into-file block file)))
block))))
-(defmethod fetch-data (read-capability (backend file-backend) &key &allow-other-keys)
- (declare (type read-capability read-capability))
- (with-slots (fetch-function) backend
- (eris-decode read-capability fetch-function)))
-
-(defmethod store-data (input (backend file-backend) &key (secret null-secret) &allow-other-keys)
- (declare (type octet-vector secret))
- (with-slots (output-function) backend
- (eris-encode input
- (if (> (etypecase input
- (stream (file-length input))
- (vector (length input)))
- (* 2 16384))
- 32kib
- 1kib)
- output-function
- :hash-output nil
- :secret secret)))