Skip to content

Commit

Permalink
replace FileStream.Seek to end with FileMode.Append (#70)
Browse files Browse the repository at this point in the history
* replace FileStream.Seek to end with FileMode.Append

* prepare release 2.3.1-alpha.1
  • Loading branch information
wenxi-zeng authored Oct 6, 2023
1 parent eab2586 commit 52ae617
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Analytics-CSharp/Analytics-CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<Authors>Segment, Inc</Authors>
<Description>The hassle-free way to add analytics to your C# app.</Description>
<Version>2.3.0</Version>
<Version>2.3.1-alpha.1</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/segmentio/Analytics-CSharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ public void OpenOrCreate(string file, out bool newFile)

if (_fs == null)
{
_fs = _file.Open(FileMode.OpenOrCreate);
_fs.Seek(0, SeekOrigin.End);
_fs = _file.Open(FileMode.Append);
}
_file.Refresh();
}
Expand Down
2 changes: 1 addition & 1 deletion Analytics-CSharp/Segment/Analytics/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ namespace Segment.Analytics
{
internal static class Version
{
internal const string SegmentVersion = "2.3.0";
internal const string SegmentVersion = "2.3.1-alpha.1";
}
}

0 comments on commit 52ae617

Please sign in to comment.