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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user