From 6a81c0e9db100a9d8a927d525891ddf71785cd01 Mon Sep 17 00:00:00 2001 From: postmannen Date: Wed, 17 Feb 2021 12:02:34 +0100 Subject: [PATCH] retreival and handling of previosly unhandled messages on program restart implemented --- incommmingBuffer.db | Bin 32768 -> 32768 bytes publisher.go | 2 +- ringbuffer.go | 64 +++++++++++++++++++++++++++++++++++++++----- textlogging.log | 1 + 4 files changed, 60 insertions(+), 7 deletions(-) diff --git a/incommmingBuffer.db b/incommmingBuffer.db index 2a70a16c3b0aefb4d63808926e55d60acee7bed2..0c1eac2f8ddf49209f5c8f281dc94bd320d67c0f 100644 GIT binary patch delta 86 zcmZo@U}|V!n&2R?i~$0?ww>2n|2j}?v!cNU{z(E30!yJ1E3>zqi};YN1d&iEWi**w dreM!$Y+0@3>7rz1ym_C(c6mmV&1DW<_5f)48pi+t delta 86 zcmZo@U}|V!n&2SN!2khEY-QbNDV?(3tZ1--f0BTMKs!`|+ojH_Cw`MXL_(pI(Rgy1 df<32^Wwny0i;|Vm=6wp= samDBValues[j].ID + }) + + fmt.Println("--------------------------K/V DUMP TO VARIABLE SORTED---------------------------") + for _, v := range samDBValues { + fmt.Printf("%#v\n", v) + } + fmt.Println("----------------------------------------------------------------------------------") + return nil + }) + + return samDBValues, err +} + +// printBuckerContent will print out all they keys and values in the +// specified bucket. +func (r *ringBuffer) printBucketContent(bucket string) error { err := r.db.View(func(tx *bolt.Tx) error { bu := tx.Bucket([]byte(bucket)) diff --git a/textlogging.log b/textlogging.log index 6365e5e..38dfdd3 100644 --- a/textlogging.log +++ b/textlogging.log @@ -19,3 +19,4 @@ some message sent from a ship for testing some message sent from a ship for testing some message sent from a ship for testing some message sent from a ship for testing +some message sent from a ship for testing