Add migration to backfill digests.

This commit is contained in:
Greyson Parrelli
2024-09-04 11:25:15 -04:00
committed by Cody Henthorne
parent a8bf03af89
commit d59985c7b1
8 changed files with 255 additions and 8 deletions

View File

@@ -0,0 +1,17 @@
/*
* Copyright 2024 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.signal.core.util.stream
import java.io.OutputStream
/**
* An output stream that drops all data on the floor. Basically piping to /dev/null.
*/
object NullOutputStream : OutputStream() {
override fun write(b: Int) = Unit
override fun write(b: ByteArray?) = Unit
override fun write(b: ByteArray?, off: Int, len: Int) = Unit
}