From 6ae9ad989096a9cc3a6d05ff02c4bc035acb6805 Mon Sep 17 00:00:00 2001 From: joshemb <josh@elixxir.io> Date: Mon, 10 Oct 2022 14:06:16 -0700 Subject: [PATCH] Add docstring defining use case of SetTimeSource --- bindings/timeNow.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bindings/timeNow.go b/bindings/timeNow.go index d4ef6929d..6aad2298f 100644 --- a/bindings/timeNow.go +++ b/bindings/timeNow.go @@ -13,7 +13,9 @@ import ( ) // SetTimeSource will set the time source that will be used when retrieving the -// current time using [netTime.Now]. +// current time using [netTime.Now]. This should be called BEFORE Login() +// and only be called once. Using this after Login is undefined behavior that +// may result in a crash. // // Parameters: // - timeNow is an object which adheres to [netTime.TimeSource]. Specifically, -- GitLab