Взврат неизменяемых данных снимка
This commit is contained in:
parent
76a7efeceb
commit
3eaae341aa
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ private:
|
|||
public:
|
||||
this(DBLite dblite, DBSnapshot dbSnapshot) { _db = dblite; _snapshot = dbSnapshot; }
|
||||
|
||||
ubyte[] data()
|
||||
immutable(ubyte[]) data()
|
||||
{
|
||||
auto chunks = _db.getChunks(_snapshot.id);
|
||||
ubyte[] content;
|
||||
|
|
@ -55,7 +55,7 @@ public:
|
|||
|
||||
enforce(_snapshot.sha256 == fctx.finish(), "Хеш итогового файла не совпадает");
|
||||
|
||||
return content;
|
||||
return content.idup;
|
||||
}
|
||||
|
||||
void data(void delegate(const(ubyte)[]) sink)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue