From 265457b45171dcae96a1aac9454e3bda2cd0557a Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 19 Dec 2017 23:15:03 +0100 Subject: Refactor and add MediaDownloadSize to General --- bridge/steam/steam.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'bridge/steam') diff --git a/bridge/steam/steam.go b/bridge/steam/steam.go index 7eaef46a..51e15c5b 100644 --- a/bridge/steam/steam.go +++ b/bridge/steam/steam.go @@ -16,11 +16,9 @@ import ( type Bsteam struct { c *steam.Client connected chan struct{} - Config *config.Protocol - Remote chan config.Message - Account string userMap map[steamid.SteamId]string sync.RWMutex + *config.BridgeConfig } var flog *log.Entry @@ -30,11 +28,8 @@ func init() { flog = log.WithFields(log.Fields{"module": protocol}) } -func New(cfg config.Protocol, account string, c chan config.Message) *Bsteam { - b := &Bsteam{} - b.Config = &cfg - b.Remote = c - b.Account = account +func New(cfg *config.BridgeConfig) *Bsteam { + b := &Bsteam{BridgeConfig: cfg} b.userMap = make(map[steamid.SteamId]string) b.connected = make(chan struct{}) return b -- cgit v1.2.3