demo user banner

This commit is contained in:
realaravinth
2021-08-09 12:23:06 +05:30
parent 147f563ec8
commit 02b62fb1d0
8 changed files with 35 additions and 3 deletions

View File

@@ -14,7 +14,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use std::time::Duration;
use actix::clock::sleep;
@@ -55,6 +54,7 @@ async fn delete_demo_user(data: &AppData) -> ServiceResult<()> {
pub async fn run(data: AppData, duration: Duration) -> ServiceResult<()> {
register_demo_user(&data).await?;
let fut = async move {
loop {
sleep(duration).await;