From f6d885b26bf2bc3591fb83b992d9b20cf0ea69b3 Mon Sep 17 00:00:00 2001 From: factorlive Date: Fri, 2 Oct 2020 22:36:22 +0100 Subject: [PATCH] :arrow_up: move type declarations into actor block --- dfx.json | 2 +- src/connectd/main.mo | 3 ++- src/linkedup/main.mo | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dfx.json b/dfx.json index 55b6f5f..0994eb0 100644 --- a/dfx.json +++ b/dfx.json @@ -33,5 +33,5 @@ "type": "ephemeral" } }, - "dfx": "0.6.6" + "dfx": "0.6.10" } diff --git a/src/connectd/main.mo b/src/connectd/main.mo index 68ddab3..2966a33 100644 --- a/src/connectd/main.mo +++ b/src/connectd/main.mo @@ -1,11 +1,12 @@ import Digraph "./digraph"; import Types "./types"; -type Vertex = Types.Vertex; actor Connectd { var graph: Digraph.Digraph = Digraph.Digraph(); + type Vertex = Types.Vertex; + public func healthcheck(): async Bool { true }; public func connect(userA: Vertex, userB: Vertex): async () { diff --git a/src/linkedup/main.mo b/src/linkedup/main.mo index 7b77f9f..c600e39 100644 --- a/src/linkedup/main.mo +++ b/src/linkedup/main.mo @@ -4,13 +4,14 @@ import Database "./database"; import Types "./types"; import Utils "./utils"; -type NewProfile = Types.NewProfile; -type Profile = Types.Profile; -type UserId = Types.UserId; actor LinkedUp { var directory: Database.Directory = Database.Directory(); + type NewProfile = Types.NewProfile; + type Profile = Types.Profile; + type UserId = Types.UserId; + // Healthcheck public func healthcheck(): async Bool { true };