File tree Expand file tree Collapse file tree
RustPlusBot.Persistence/Connections Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 "Connections:MaxRetryDelay must be at least InitialRetryDelay." )
4747 . Validate ( static o => o . HeartbeatInterval > TimeSpan . Zero , "Connections:HeartbeatInterval must be positive." )
4848 . Validate ( static o => o . HeartbeatTimeout > TimeSpan . Zero , "Connections:HeartbeatTimeout must be positive." )
49+ . Validate ( static o => o . HeartbeatTimeout < o . HeartbeatInterval ,
50+ "Connections:HeartbeatTimeout must be less than HeartbeatInterval." )
4951 . ValidateOnStart ( ) ;
5052builder . Services . AddConnections ( ) ;
5153
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public async Task<bool> UpsertStatusAsync(
2828 CancellationToken cancellationToken = default )
2929 {
3030 var existing = await context . ConnectionStates
31- . SingleOrDefaultAsync ( s => s . RustServerId == serverId , cancellationToken )
31+ . SingleOrDefaultAsync ( s => s . GuildId == guildId && s . RustServerId == serverId , cancellationToken )
3232 . ConfigureAwait ( false ) ;
3333
3434 if ( existing is null )
You can’t perform that action at this time.
0 commit comments