Use monotonic time util. (#3112)

Thank you @paulwe for doing this. I was promising to do this for a
while, but just like other times, empty promises :-(
This commit is contained in:
Raja Subramanian
2024-10-17 10:49:24 +05:30
committed by GitHub
parent 19c5ed6343
commit 40b10af960
14 changed files with 23 additions and 117 deletions
-6
View File
@@ -20,7 +20,6 @@ package service
import (
"fmt"
"os"
"time"
"github.com/google/wire"
"github.com/pion/turn/v2"
@@ -46,7 +45,6 @@ import (
func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*LivekitServer, error) {
wire.Build(
getTimeNow,
getNodeID,
createRedisClient,
createStore,
@@ -124,10 +122,6 @@ func InitializeRouter(conf *config.Config, currentNode routing.LocalNode) (routi
return nil, nil
}
func getTimeNow() time.Time {
return time.Now()
}
func getNodeID(currentNode routing.LocalNode) livekit.NodeID {
return livekit.NodeID(currentNode.Id)
}