Skip to content

Commit

Permalink
[Doc] Fix threadsafe example (#699)
Browse files Browse the repository at this point in the history
* fix thread safe example

* fix indent
  • Loading branch information
chaokunyang authored Jul 19, 2023
1 parent c30145e commit f2b5c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ public class Example {
System.out.println(fury.deserialize(bytes));
}
{
ThreadSafeFury fury = new ThreadSafeFury(() -> {
ThreadSafeFury fury = new ThreadLocalFury((classLoader) -> {
Fury f = Fury.builder().withLanguage(Language.JAVA)
.withRefTracking(true).build();
.withRefTracking(true).withClassLoader(classLoader).build();
f.register(SomeClass.class);
return f;
});
Expand Down

0 comments on commit f2b5c5a

Please sign in to comment.