From b1641d1af92eca6e475ea76aaed21a5dab0df185 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Sep 2022 12:12:28 +0200 Subject: remove chat functionality completely --- srv/src/chat/util.go | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 srv/src/chat/util.go (limited to 'srv/src/chat/util.go') diff --git a/srv/src/chat/util.go b/srv/src/chat/util.go deleted file mode 100644 index 05f4830..0000000 --- a/srv/src/chat/util.go +++ /dev/null @@ -1,28 +0,0 @@ -package chat - -import ( - "strconv" - "strings" - - "github.com/mediocregopher/radix/v4" -) - -func parseStreamEntryID(str string) (radix.StreamEntryID, error) { - - split := strings.SplitN(str, "-", 2) - if len(split) != 2 { - return radix.StreamEntryID{}, errInvalidMessageID - } - - time, err := strconv.ParseUint(split[0], 10, 64) - if err != nil { - return radix.StreamEntryID{}, errInvalidMessageID - } - - seq, err := strconv.ParseUint(split[1], 10, 64) - if err != nil { - return radix.StreamEntryID{}, errInvalidMessageID - } - - return radix.StreamEntryID{Time: time, Seq: seq}, nil -} -- cgit v1.2.3