diff --git a/README.md b/README.md index 96811b1..9a2f77a 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,8 @@ import ( ) func main() { - h := hrotti.NewHrotti(100) + r := &hrotti.MemoryPersistence{} + h := hrotti.NewHrotti(100, r) hrotti.INFO = log.New(os.Stdout, "INFO: ", log.Ldate|log.Ltime) h.AddListener("test", hrotti.NewListenerConfig("tcp://0.0.0.0:1883")) @@ -60,4 +61,4 @@ An example configuration file is shown below } ``` -The current persistence mechanism is in memory only. \ No newline at end of file +The current persistence mechanism is in memory only.