From 087dd53cbd67281a5021fa3e1826a8d7ec61a1a8 Mon Sep 17 00:00:00 2001 From: TATAUFO Date: Sat, 1 Feb 2020 20:35:44 +0800 Subject: [PATCH] modify readme, add go awesome link --- README.md | 1 + core/universe.go | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d9eae19..8927de4 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ go-pdu [![License](https://img.shields.io/badge/license-GPL%20v3-blue.svg)](LICENSE) [![Chat](https://img.shields.io/badge/gitter-Docs%20chat-4AB495.svg)](https://gitter.im/pdupub/go-pdu) [![Coverage Status](https://coveralls.io/repos/github/pdupub/go-pdu/badge.svg?branch=master)](https://coveralls.io/github/pdupub/go-pdu?branch=master) +[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go#distributed-systems) Golang implementation of PDU. diff --git a/core/universe.go b/core/universe.go index da3d093..1a26c41 100644 --- a/core/universe.go +++ b/core/universe.go @@ -20,6 +20,7 @@ import ( "encoding/json" "errors" "fmt" + "github.com/pdupub/go-pdu/common" "github.com/pdupub/go-pdu/core/rule" "github.com/pdupub/go-pdu/dag" @@ -68,9 +69,9 @@ type SpaceTime struct { // Universe contain many space time on different time line type Universe struct { - msgD *dag.DAG `json:"messageDAG"` // contain all messages valid in any universe (time proof) - userD *dag.DAG `json:"userDAG"` // contain all users valid in any universe (time proof) - stD *dag.DAG `json:"spaceTimeDAG"` // contain all space time, which is the origin thought of PDU + msgD *dag.DAG // contain all messages valid in any universe (time proof) + userD *dag.DAG // contain all users valid in any universe (time proof) + stD *dag.DAG // contain all space time, which is the origin thought of PDU } // NewUniverse create Universe from two user with diff gender